note 116276 added to function.autoload
| From: | JoseG | Date: | Thu, 04 Dec 2014 20:29:42 +0000 |
| Subject: | note 116276 added to function.autoload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-201068@lists.php.net to get a copy of this message | ||
You should use include() or require() inside __autoload()
instead of include_once() or require_once().
If you reach __autoload(), then you know the file with the class definition has not been loaded yet.
include() and require() are more efficient than include_once() and require_once().
----
Server IP: 72.52.91.14
Probable Submitter: 2001:4998:effd:600:9cd2:e5a7:9260:d5aa
----
Manual Page -- http://php.net/manual/en/function.autoload.php
Edit -- https://master.php.net/note/edit/116276
Del: integrated -- https://master.php.net/note/delete/116276/integrated
Del: useless -- https://master.php.net/note/delete/116276/useless
Del: bad code -- https://master.php.net/note/delete/116276/bad+code
Del: spam -- https://master.php.net/note/delete/116276/spam
Del: non-english -- https://master.php.net/note/delete/116276/non-english
Del: in docs -- https://master.php.net/note/delete/116276/in+docs
Del: other reasons-- https://master.php.net/note/delete/116276
Reject -- https://master.php.net/note/reject/116276
Search -- https://master.php.net/manage/user-notes.php