]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Wed, 22 Oct 2003 23:42:56 +0000 (23:42 +0000)
committerSVN Migration <svn@php.net>
Wed, 22 Oct 2003 23:42:56 +0000 (23:42 +0000)
tests/lang/bug25922.phpt [new file with mode: 0755]

diff --git a/tests/lang/bug25922.phpt b/tests/lang/bug25922.phpt
new file mode 100755 (executable)
index 0000000..0588eef
--- /dev/null
@@ -0,0 +1,21 @@
+--TEST--
+Bug #25922 (SEGV in error_handler when context is destroyed)
+--INI--
+error_reporting=2047
+--FILE--
+<?php
+function my_error_handler($error, $errmsg='', $errfile='', $errline=0, $errcontext='')
+{
+       $errcontext = '';
+}
+                                                                                        
+set_error_handler('my_error_handler');
+
+function test()
+{
+       echo "Undefined index here: '{$data['HTTP_HEADER']}'\n";
+}
+test();
+?>
+--EXPECT--
+Undefined index here: ''