Fix issue with global fallback when not in global space

This commit is contained in:
Anthony Ferrara 2013-08-30 11:53:57 -04:00
parent e14a769c56
commit d7e3aca9c9

View File

@ -0,0 +1,18 @@
--TEST--
non-existent imported functions should not be looked up in the global table
--FILE--
<?php
namespace {
function test() {
echo "NO!";
}
}
namespace foo {
use function bar\test;
test();
}
?>
--EXPECTF--
Fatal error: Call to undefined function bar\test() in %s on line %d