Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9611 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62637 invoked by uid 1010); 29 Apr 2004 10:26:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 62613 invoked from network); 29 Apr 2004 10:26:08 -0000 Received: from unknown (HELO mx.thebrainroom.net) (65.200.24.98) by pb1.pair.com with SMTP; 29 Apr 2004 10:26:08 -0000 Received: by mx.thebrainroom.net (Postfix, from userid 517) id 70D4114880BD; Thu, 29 Apr 2004 03:26:06 -0700 (PDT) Received: from tron (obsidian.thebrainroom.net [82.133.1.142]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx.thebrainroom.net (Postfix) with SMTP id 1E6C714880B7; Thu, 29 Apr 2004 03:26:02 -0700 (PDT) Message-ID: <007801c42dd4$615036a0$8a02a8c0@tron> To: Cc: "Andi Gutmans" Date: Thu, 29 Apr 2004 11:26:03 +0100 Organization: The Brain Room Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-TBR-Filter: Virus scanned and defanged Subject: exceptions in overloaded objects still a little off From: wez@thebrainroom.com ("Wez Furlong") If a read_dimension handler returns a NULL zval and throws an exception, the engine will emit an error "Objects used as arrays in post/pre increment/decrement must return values by reference". $foo['bar'] = 42; I know this is because the value is going to be written into, but IMO it's better to fire the exception at this point, since the engine error message hides the useful message from the exception (and is a little misleading in any case). --Wez.