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