Annotation of embedaddon/php/Zend/tests/errmsg_045.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Error message in error handler during compilation
! 3: --FILE--
! 4: <?php
! 5:
! 6: set_error_handler(function($_, $msg, $file) {
! 7: var_dump($msg, $file);
! 8: echo $undefined;
! 9: });
! 10:
! 11: eval('class A { function a() {} function __construct() {} }');
! 12:
! 13: ?>
! 14: --EXPECTF--
! 15: string(50) "Redefining already defined constructor for class A"
! 16: string(%d) "%s(%d) : eval()'d code"
! 17:
! 18: Notice: Undefined variable: undefined in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>