note 79928 deleted from language.oop5.autoload by cmb
| From: | cmb@php.net | Date: | Tue, 05 Nov 2019 14:46:51 +0000 |
| Subject: | note 79928 deleted from language.oop5.autoload by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212941@lists.php.net to get a copy of this message | ||
Note Submitter: ostapk
----
To sandrejev at gmail dot com below:
if you create the exception in the __autoload() and serialize it, then when you try to access the
same missing class later (in another place in the code), then the exception will contain invalid
stack trace.
Also, here's an excellent blog post that discusses the consequences of using eval() as well as
provides an example to handle static method calls and namespaces: http://www.onphp5.com/article/61