note 86236 deleted from language.namespaces.rules by philip
| From: | philip@php.net | Date: | Fri, 28 Nov 2008 18:55:49 +0000 |
| Subject: | note 86236 deleted from language.namespaces.rules by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147110@lists.php.net to get a copy of this message | ||
Note Submitter: sean dot mccleary at gmail dot com
----
Watch out if you're using class auto-loading.
If you are working in namespace "A", and want to auto-load the class "Person"
which is defined in the global namespace, it won't work because the __autoload function will be
passed "A::Person" as a parameter.
You must specify you want to use the class ::Person.