mirror of
https://github.com/php/php-src.git
synced 2024-12-20 15:30:38 +08:00
d2607a0110
Introduce helper macro FC(x) for CG(file_context).x. end_compilation() now handled by file_context_end(). While at it, dropped zval wrapper for ticcks.
20 lines
437 B
PHP
20 lines
437 B
PHP
--TEST--
|
|
Bug #69388: Use after free on recursive calls to PHP compiler
|
|
--FILE--
|
|
<?php
|
|
|
|
error_reporting(E_ALL | E_STRICT);
|
|
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
|