File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / errmsg_045.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Sun Jun 15 20:04:04 2014 UTC (10 years, 8 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29, HEAD
php 5.4.29

--TEST--
Error message in error handler during compilation
--FILE--
<?php

set_error_handler(function($_, $msg, $file) {
	var_dump($msg, $file);
	echo $undefined;
});

eval('class A { function a() {} function __construct() {} }');

?>
--EXPECTF--
string(50) "Redefining already defined constructor for class A"
string(%d) "%s(%d) : eval()'d code"

Notice: Undefined variable: undefined in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>