Re: parse errors when testing for undefined exceptions

From: Date: Thu, 02 Sep 2004 06:47:44 +0000
Subject: Re: parse errors when testing for undefined exceptions
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-12541@lists.php.net to get a copy of this message
On Thu, 2 Sep 2004, Alan Knowles wrote: > Marcus Boerger wrote: > > >Hello Alan, > > > >juts for the record, you can even __autoload the missing exception class: > > > >php -n -r 'function __autoload($n) { var_dump($n); eval("class $n extends > >Exception {}"); } try { } catch(ExcetpionXYZ $e) {};' > > > > > dont you think this is a really horrible kludge? But so are exceptions in the first place ;-) Derick

« previous php.internals (#12541) next »