mirror of
https://github.com/php/php-src.git
synced 2026-03-30 04:02:19 +02:00
I'm removing the argument entirely here, but we might want to change this to passing null or and empty array instead, if the impact of dropping it entirely turns out to be too large. This was deprecated as part of https://wiki.php.net/rfc/deprecations_php_7_2 as a doc-only deprecation.
19 lines
392 B
PHP
19 lines
392 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
|