xref: /PHP-7.4/Zend/tests/bug69388.phpt (revision 1a3bdb4a)
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, $context) {
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