Consider the following code:

test.php:
<?php
include 'foo.php';
use test::foo;
foo();
?>

foo.php:
<?php
namespace test;
function foo() { }
?>

Is it expected behavior that the scripts ends in:
Fatal error: Call to undefined function foo()
?

That's all for now.
Best regards,

Martin Alterisio

PS: Is there any benchmark that could be run to test out what's the impact
of the delayed name resolutions? I believe is not considerable but I'd like
to test in my machine and provide some feedback, and I don't know if what
I'm trying to do as benchmark is reliable ("time <phpscript>" and
shell-scripting for data compilation).

Reply via email to