Re:PHP 5.3.0 Released
by wvenable on Tuesday June 30, 2009 @03:54PM
(#681451)
I'm not sure I fully get the explanation from your EDIT. If you had a single scope resolution operator ::, classes and namespaces should share the same hash and lookup. A class is, fundamentally, a namespace.
namespace foo;
function bar(){echo "func\n";}
class foo{
static function bar(){echo "func\n";}
}
Should be equivalent as far as invoking them is concerned.
namespace foo; function bar(){echo "func\n";}
class foo{ static function bar(){echo "func\n";} }
Should be equivalent as far as invoking them is concerned.