mirror of
https://github.com/php/php-src.git
synced 2025-01-05 18:33:56 +08:00
19 lines
407 B
PHP
19 lines
407 B
PHP
--TEST--
|
|
Bug #69388: Use after free on recursive calls to PHP compiler
|
|
--FILE--
|
|
<?php
|
|
|
|
function handle_error($code, $message, $file, $line) {
|
|
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
|