Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18506 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65218 invoked by uid 1010); 28 Aug 2005 08:36:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 65202 invoked from network); 28 Aug 2005 08:36:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Aug 2005 08:36:10 -0000 X-Host-Fingerprint: 87.123.88.164 i577B58A4.versanet.de Received: from ([87.123.88.164:4233] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 0A/6D-28235-97771134 for ; Sun, 28 Aug 2005 04:36:09 -0400 Message-ID: <0A.6D.28235.97771134@pb1.pair.com> To: internals@lists.php.net Date: Sun, 28 Aug 2005 10:36:08 +0200 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 87.123.88.164 Subject: Re: [PHP-DEV] Property Overloading RFC From: lsmith@php.net (Lukas Smith) Stanislav Malyshev wrote: > DR>>If it returns false, the engine can throw an error on the line where > DR>>it was used, not inside the __get() method itself, as that doesn't > DR>>help debugging your code (as you don't usually know where it was > DR>>called from). > > That I understand. However, you still don't have means to know _what_ > was wrong in this line. BTW, how comes you don't know where it came from > if you have backtrace? Uhm Derick has said multiple times that he can get a backtrace, but that backtrace points at the wrong place just as manually triggering an error. Obviously this is somehow fixable with alot of magic inside a custom error handler. However I think the addition Derick is proposing is fairly reasonble and clear and doesnt introduce a new keyword or magic method. regards, Lukas