mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
1a3bdb4a2c
run-tests.php enforces error_reporting=E_ALL (including E_STRICT), setting this explicitly in not necessary. Conversely, after the removal of some E_STRICT errors, explicitly excluding it is no longer necessary in some places.
19 lines
402 B
PHP
19 lines
402 B
PHP
--TEST--
|
|
Bug #69388: Use after free on recursive calls to PHP compiler
|
|
--FILE--
|
|
<?php
|
|
|
|
function handle_error($code, $message, $file, $line, $context) {
|
|
if (!function_exists("bla")) {
|
|
eval('function bla($s) {echo "$s\n";}');
|
|
}
|
|
bla($message);
|
|
}
|
|
|
|
set_error_handler('handle_error');
|
|
eval('namespace {use Exception;}');
|
|
|
|
?>
|
|
--EXPECT--
|
|
The use statement with non-compound name 'Exception' has no effect
|