Annotation of embedaddon/php/tests/lang/bug25922.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #25922 (SEGV in error_handler when context is destroyed)
! 3: --INI--
! 4: error_reporting=2047
! 5: --FILE--
! 6: <?php
! 7: function my_error_handler($error, $errmsg='', $errfile='', $errline=0, $errcontext='')
! 8: {
! 9: echo "$errmsg\n";
! 10: $errcontext = '';
! 11: }
! 12:
! 13: set_error_handler('my_error_handler');
! 14:
! 15: function test()
! 16: {
! 17: echo "Undefined index here: '{$data['HTTP_HEADER']}'\n";
! 18: }
! 19: test();
! 20: ?>
! 21: --EXPECT--
! 22: Undefined variable: data
! 23: Undefined index here: ''
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>