note 94077 deleted from language.oop5.magic by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 11:17:44 +0000 |
| Subject: | note 94077 deleted from language.oop5.magic by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197085@lists.php.net to get a copy of this message | ||
Note Submitter: vad dot viktor at gmail dot com
----
If you are using __autoload to dynamically load your classes, then __invoke won't work. Calling
a class like SomeClass() will give and error in this case as it is evaluated first as a function,
not as a class and so __autoload won't be triggered.