[PHP-DEV] Re: Maybe a problem? undetected name clash makes static method unaccessible through outside static reference

2007-12-20 Thread Greg Beaver
Martin Alterisio wrote: > Consider the following code: > > foo.php: > class test { > public static function foo() { echo "I'm foo in class test\n"; } > public static function foo2() { self::foo(); } > } > ?> > > foo2.php: > namespace test; > function foo() { echo "I'm foo in namespace test\

[PHP-DEV] Re: Maybe a problem? undetected name clash makes static method unaccessible through outside static reference

2007-12-22 Thread Martin Alterisio
2007/12/21, Greg Beaver <[EMAIL PROTECTED]>: > > Martin Alterisio wrote: > > Consider the following code: > > > > foo.php: > > > class test { > > public static function foo() { echo "I'm foo in class test\n"; } > > public static function foo2() { self::foo(); } > > } > > ?> > > > > foo2.php: >

Re: [PHP-DEV] Re: Maybe a problem? undetected name clash makes static method unaccessible through outside static reference

2007-12-21 Thread Jochem Maas
Greg Beaver schreef: > Martin Alterisio wrote: >> Consider the following code: >> >> foo.php: >> > class test { >> public static function foo() { echo "I'm foo in class test\n"; } >> public static function foo2() { self::foo(); } >> } >> ?> >> >> foo2.php: >> > namespace test; >> function foo()