mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
2f1f34952e
I'm removing the argument entirely here, but we might want to change this to passing null or and empty array instead, if the impact of dropping it entirely turns out to be too large. This was deprecated as part of https://wiki.php.net/rfc/deprecations_php_7_2 as a doc-only deprecation.
16 lines
309 B
PHP
16 lines
309 B
PHP
--TEST--
|
|
Bug #69388 - Variation
|
|
--FILE--
|
|
<?php
|
|
function handle_error($code, $message, $file, $line) {
|
|
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
|