mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
24 lines
415 B
PHP
24 lines
415 B
PHP
--TEST--
|
|
Bug #29890 (crash if error handler fails)
|
|
--FILE--
|
|
<?php
|
|
function customErrorHandler($fErrNo,$fErrStr,$fErrFile,$fErrLine,&$fClass) {
|
|
echo "error :".$fErrStr."\n";
|
|
}
|
|
|
|
set_time_limit(5);
|
|
|
|
error_reporting(E_ALL);
|
|
|
|
set_error_handler("customErrorHandler");
|
|
|
|
define("TEST",2);
|
|
|
|
//should return a notice that the constant is already defined
|
|
|
|
define("TEST",3);
|
|
|
|
?>
|
|
--EXPECT--
|
|
error :Constant TEST already defined
|