On May 17, 2012, at 10:25 AM, Patrick Reilly wrote:
On Thu, May 17, 2012 at 10:11 AM, Terry Chay
<tchay(a)wikimedia.org> wrote:
Hmm maybe technically. But the way namespaces are
implemented in PHP 5.3
is very simple (that's part of the reason they chose the forward slash
separator).
I think you mean the *backslash* (\) character.
Yes.
I'm specifically referring to the fact that global namespacing is automatic in the
case of functions, but not in the case of classes themselves. So things like stdClass need
to be \stdClass IF at a later point you decide to put a topline namespace in front of the
file.
If we're really 5.3 only, then it can't hurt to do that for built-in classes now.
If we're not, then this breaks BC with 5.2