php-src/Zend/tests/bug69388_2.phpt
Nikita Popov 2f1f34952e Remove $errcontext argument to error handlers
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.
2019-02-05 14:12:10 +01:00

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