xref: /PHP-8.0/Zend/tests/bug69388.phpt (revision f8d79582)
1--TEST--
2Bug #69388: Use after free on recursive calls to PHP compiler
3--FILE--
4<?php
5
6function handle_error($code, $message, $file, $line) {
7    if (!function_exists("bla")) {
8        eval('function bla($s) {echo "$s\n";}');
9    }
10    bla($message);
11}
12
13set_error_handler('handle_error');
14eval('namespace {use Exception;}');
15
16?>
17--EXPECT--
18The use statement with non-compound name 'Exception' has no effect
19