note 86236 added to language.namespaces.rules

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
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.
----
Server IP: 217.160.72.57
Probable Submitter: 88.74.18.152
----
Manual Page -- http://www.php.net/manual/en/language.namespaces.rules.php
Edit        -- https://master.php.net/note/edit/86236
Del: integrated  -- https://master.php.net/note/delete/86236/integrated
Del: useless     -- https://master.php.net/note/delete/86236/useless
Del: bad code    -- https://master.php.net/note/delete/86236/bad+code
Del: spam        -- https://master.php.net/note/delete/86236/spam
Del: non-english -- https://master.php.net/note/delete/86236/non-english
Del: in docs     -- https://master.php.net/note/delete/86236/in+docs
Del: other reasons-- https://master.php.net/note/delete/86236
Reject      -- https://master.php.net/note/reject/86236
Search      -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.