note 79928 added to language.oop5.autoload

From: Date: Wed, 19 Dec 2007 22:46:48 +0000
Subject: note 79928 added to language.oop5.autoload
Groups: php.notes 
Request: Send a blank email to php-notes+get-133798@lists.php.net to get a copy of this message
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 ---- Server IP: 216.92.131.65 Probable Submitter: 194.44.193.103 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.autoload.php Edit -- https://master.php.net/note/edit/79928 Del: integrated -- https://master.php.net/note/delete/79928/integrated Del: useless -- https://master.php.net/note/delete/79928/useless Del: bad code -- https://master.php.net/note/delete/79928/bad+code Del: spam -- https://master.php.net/note/delete/79928/spam Del: non-english -- https://master.php.net/note/delete/79928/non-english Del: in docs -- https://master.php.net/note/delete/79928/in+docs Del: other reasons-- https://master.php.net/note/delete/79928 Reject -- https://master.php.net/note/reject/79928 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#133798) next »