mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
19 lines
473 B
PHP
19 lines
473 B
PHP
--TEST--
|
|
Bug #76025 (Segfault while throwing exception in error_handler)
|
|
--FILE--
|
|
<?php
|
|
|
|
function handleError($errno, $errstr, $errfile, $errline) {
|
|
$exception = new exception("blah");
|
|
throw $exception;
|
|
}
|
|
set_error_handler('handleError', E_ALL);
|
|
$c = $b[$a];
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Exception: blah in %sbug76025.php:%d
|
|
Stack trace:
|
|
#0 %sbug76025.php(%d): handleError(8, 'Undefined varia...', '%s', %d, Array)
|
|
#1 {main}
|
|
thrown in %sbug76025.php on line %d
|