summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2015-12-11 17:26:31 +0800
committerXinchen Hui <laruence@gmail.com>2015-12-11 17:26:31 +0800
commitb5adfee320de8d8aa13ee9d97f040f4d416f40d5 (patch)
tree1f5d62d0f31cb3239832d90da88152ac4dd5076c /tests
parent5c5209d676fd9eaef861792d03ff819ed36e7ea5 (diff)
downloadphp-git-b5adfee320de8d8aa13ee9d97f040f4d416f40d5.tar.gz
Fixed bug memleak in header_register_callback
Diffstat (limited to 'tests')
-rw-r--r--tests/basic/header_register_callback.phpt8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/basic/header_register_callback.phpt b/tests/basic/header_register_callback.phpt
new file mode 100644
index 0000000000..641ee9e3e7
--- /dev/null
+++ b/tests/basic/header_register_callback.phpt
@@ -0,0 +1,8 @@
+--TEST--
+Test header_register_callback
+--FILE--
+<?php
+header_register_callback(function() { echo "sent";});
+?>
+--EXPECT--
+sent