blob: 1277d4e2c2ab70c1d330123385a4c6b8b4286667 (
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.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
|