summaryrefslogtreecommitdiff
path: root/Zend/tests/bug71221.phpt
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2015-12-25 20:31:37 -0800
committerXinchen Hui <laruence@gmail.com>2015-12-25 20:32:26 -0800
commit6700be67f58611d08bbacc44f327ce98ed0473c9 (patch)
treea03044dacf2e55dfe82a2c8f3c8abcc88bf0ba3e /Zend/tests/bug71221.phpt
parent2a7eeff33e6b798c0b36a0a0e52fbf8c3197f4e9 (diff)
downloadphp-git-6700be67f58611d08bbacc44f327ce98ed0473c9.tar.gz
Fixed bug #71221 (Null pointer deref (segfault) in get_defined_vars via ob_start)
Diffstat (limited to 'Zend/tests/bug71221.phpt')
-rw-r--r--Zend/tests/bug71221.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/bug71221.phpt b/Zend/tests/bug71221.phpt
new file mode 100644
index 0000000000..e735302d9e
--- /dev/null
+++ b/Zend/tests/bug71221.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Bug #71221 (Null pointer deref (segfault) in get_defined_vars via ob_start)
+--FILE--
+<?php
+ob_start("get_defined_vars");
+ob_end_clean();
+?>
+okey
+--EXPECT--
+okey