Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42386 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31472 invoked from network); 27 Dec 2008 14:46:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Dec 2008 14:46:34 -0000 Authentication-Results: pb1.pair.com header.from=sv_forums@fmethod.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=sv_forums@fmethod.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fmethod.com from 69.16.228.148 cause and error) X-PHP-List-Original-Sender: sv_forums@fmethod.com X-Host-Fingerprint: 69.16.228.148 unknown Linux 2.4/2.6 Received: from [69.16.228.148] ([69.16.228.148:40742] helo=host.fmethod.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1F/4E-47432-8CF36594 for ; Sat, 27 Dec 2008 09:46:33 -0500 Received: from [83.228.56.37] (port=3002 helo=pc) by host.fmethod.com with esmtpa (Exim 4.69) (envelope-from ) id 1LGaQv-0000Ez-AT for internals@lists.php.net; Sat, 27 Dec 2008 08:46:29 -0600 Message-ID: To: "PHP internals" References: <49543783.50309@grudl.com> Date: Sat, 27 Dec 2008 16:46:24 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.fmethod.com X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - fmethod.com Subject: Re: [PHP-DEV] Tip for 5.3: exceptions in __toString and __autoload From: sv_forums@fmethod.com ("Stan Vassilev | FM") Hi, With __autoload you can throw an exception as long as you define the class requested. If you don't, the fatal error from the fact the class isn't there is triggered before the exception and you never see it. A clutch would be eval-ing an empty class with the same name right before you throw. I leave up to you how appropriate that is. Regards, Stan Vassilev