summaryrefslogtreecommitdiff
path: root/Zend/tests/bug69388.phpt
blob: c874db715dea2b09443a602d3db79563bd09fe68 (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