blob: 3846cca4cafa0e78849dde9dc2c342fb78d34c16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--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
|