mirror of
https://github.com/php/php-src.git
synced 2025-01-12 05:54:13 +08:00
17 lines
324 B
PHP
17 lines
324 B
PHP
--TEST--
|
|
non-existent imported functions should not be looked up in the global table
|
|
--FILE--
|
|
<?php
|
|
|
|
require 'includes/global_baz.php';
|
|
|
|
use function foo\bar\baz;
|
|
var_dump(baz());
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Call to undefined function foo\bar\baz() in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|