php-src/Zend/tests/use_function/no_global_fallback.phpt
Peter Kokot f6605c788f Rename *.php files in Zend/tests to *.inc
*.php files are ignored by Git and a better practice might be to rename
PHP included files for tests.
2018-09-23 17:20:42 +02:00

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