mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00

*.php files are ignored by Git and a better practice might be to rename PHP included files for tests.
16 lines
324 B
PHP
16 lines
324 B
PHP
--TEST--
|
|
non-existent imported functions should not be looked up in the global table
|
|
--FILE--
|
|
<?php
|
|
|
|
require 'includes/global_baz.inc';
|
|
|
|
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
|