xref: /PHP-7.2/Zend/tests/bug69388_2.phpt (revision d2607a01)
1--TEST--
2Bug #69388 - Variation
3--FILE--
4<?php
5error_reporting(E_ALL | E_STRICT);
6function handle_error($code, $message, $file, $line, $context) {
7    eval('namespace Foo;');
8    echo "$message\n";
9}
10
11set_error_handler('handle_error');
12eval('namespace {use Exception;}');
13
14?>
15--EXPECT--
16The use statement with non-compound name 'Exception' has no effect
17