note 97619 added to function.class-exists
| From: | Klaus at osu1 dot php dot net | Date: | Wed, 28 Apr 2010 11:21:40 +0000 |
| Subject: | note 97619 added to function.class-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-168754@lists.php.net to get a copy of this message | ||
If you recursively load several classes inside an autoload function (or mix manual loading and
autoloading), be aware that class_exists() (as well as get_declared_classes()) does not know about
classes previously loaded during the *current* autoload invocation.
Apparently, the internal list of declared classes is only updated after the autoload function is
completed.
----
Server IP: 85.214.154.209
Probable Submitter: 217.89.75.211
----
Manual Page -- http://www.php.net/manual/en/function.class-exists.php
Edit -- https://master.php.net/note/edit/97619
Del: integrated -- https://master.php.net/note/delete/97619/integrated
Del: useless -- https://master.php.net/note/delete/97619/useless
Del: bad code -- https://master.php.net/note/delete/97619/bad+code
Del: spam -- https://master.php.net/note/delete/97619/spam
Del: non-english -- https://master.php.net/note/delete/97619/non-english
Del: in docs -- https://master.php.net/note/delete/97619/in+docs
Del: other reasons-- https://master.php.net/note/delete/97619
Reject -- https://master.php.net/note/reject/97619
Search -- https://master.php.net/manage/user-notes.php