summaryrefslogtreecommitdiff
path: root/Zend/tests/bug69388.phpt
blob: ce39eb019737b80899d7f82ce5e3f40e68b9cf17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Bug #69388: Use after free on recursive calls to PHP compiler
--FILE--
<?php

error_reporting(E_ALL | E_STRICT);
function handle_error($code, $message, $file, $line, $context) {
	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