php-src/Zend/tests/bug69388_2.phpt
Nikita Popov 1a3bdb4a2c Remove some references to E_STRICT in tests
run-tests.php enforces error_reporting=E_ALL (including E_STRICT),
setting this explicitly in not necessary. Conversely, after the
removal of some E_STRICT errors, explicitly excluding it is no
longer necessary in some places.
2018-02-03 18:17:12 +01:00

16 lines
319 B
PHP

--TEST--
Bug #69388 - Variation
--FILE--
<?php
function handle_error($code, $message, $file, $line, $context) {
eval('namespace Foo;');
echo "$message\n";
}
set_error_handler('handle_error');
eval('namespace {use Exception;}');
?>
--EXPECT--
The use statement with non-compound name 'Exception' has no effect