summaryrefslogtreecommitdiff
path: root/Zend/tests/use_function/no_global_fallback.phpt
blob: 106fe4b2f8a7485dee34ecd03a9c6b8b13a82762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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