Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12541 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87973 invoked by uid 1010); 2 Sep 2004 06:47:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 87950 invoked from network); 2 Sep 2004 06:47:56 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 2 Sep 2004 06:47:56 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i826ltHs024576 for ; Thu, 2 Sep 2004 08:47:55 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i826livE024544; Thu, 2 Sep 2004 08:47:47 +0200 Date: Thu, 2 Sep 2004 08:47:44 +0200 (CEST) X-X-Sender: derick@localhost To: Alan Knowles cc: Marcus Boerger , internals@lists.php.net In-Reply-To: <4136908B.9020300@akbkhome.com> Message-ID: References: <4135C8C3.5000705@akbkhome.com> <1031672452.20040901215625@marcus-boerger.de> <4136908B.9020300@akbkhome.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdimedia.nl Subject: Re: [PHP-DEV] parse errors when testing for undefined exceptions From: derick@php.net (Derick Rethans) 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