Re: throwing exceptions in __autoload
| From: | Robert Janeczek | Date: | Sat, 19 Jun 2004 16:38:44 +0000 |
| Subject: | Re: throwing exceptions in __autoload | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-10622@lists.php.net to get a copy of this message | ||
i found http://bugs.php.net/bug.php?id=26193
which explains my problem,
but...
the reason of problems with catching this exception seems to be no stack
frame added. can i set it by myself somehow in derived exception class?
my idea to working around this problem is to create temporary class (not
object), but i`m not sure if it can be done. in case of error i would create
string with class declaration, 'eval' it and throw exception. specified
exception for this problem would accept class name as one of params and
undeclare the class. i can`t however find any way of undeclaring/redeclaring
classes - is it possible?
rash