[PHP-DEV] Re: Question on "use" behavior

2007-12-20 Thread Martin Alterisio
2007/12/20, Martin Alterisio <[EMAIL PROTECTED]>: > > 2007/12/20, Greg Beaver <[EMAIL PROTECTED]>: > > > > Martin Alterisio wrote: > > > Consider the following code: > > > > > > test.php: > > > > > include 'foo.php'; > > > use test::foo; > > > foo(); > > > ?> > > > > > > foo.php: > > > > > namesp

[PHP-DEV] Re: Question on "use" behavior

2007-12-20 Thread Martin Alterisio
2007/12/20, Greg Beaver <[EMAIL PROTECTED]>: > > Martin Alterisio wrote: > > Consider the following code: > > > > test.php: > > > include 'foo.php'; > > use test::foo; > > foo(); > > ?> > > > > foo.php: > > > namespace test; > > function foo() { } > > ?> > > > > Is it expected behavior that the s

[PHP-DEV] Re: Question on "use" behavior

2007-12-20 Thread Greg Beaver
Martin Alterisio wrote: > Consider the following code: > > test.php: > include 'foo.php'; > use test::foo; > foo(); > ?> > > foo.php: > namespace test; > function foo() { } > ?> > > Is it expected behavior that the scripts ends in: > Fatal error: Call to undefined function foo() > ? Hi Martin