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