Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7784 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55999 invoked by uid 1010); 12 Feb 2004 15:46:37 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 55965 invoked from network); 12 Feb 2004 15:46:35 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 12 Feb 2004 15:46:35 -0000 Received: (qmail 18154 invoked from network); 12 Feb 2004 15:46:28 -0000 Received: from localhost (HELO andi-laptop.zend.com) (127.0.0.1) by localhost with SMTP; 12 Feb 2004 15:46:28 -0000 Message-ID: <5.1.0.14.2.20040212173137.0499dfd8@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 12 Feb 2004 17:46:25 +0200 To: Stephane Drouard ,internals@lists.php.net In-Reply-To: <20040212143343.3579.qmail@pb1.pair.com> References: <5.1.0.14.2.20040212113428.02b40b20@127.0.0.1> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Re: Beta 4 RC 1 From: andi@zend.com (Andi Gutmans) At 02:33 PM 2/12/2004 +0000, Stephane Drouard wrote: >== Quote from Andi Gutmans (andi@zend.com)'s article > > I rolled a preliminary beta 4 package just to make sure nothing is > > seriously broken. You can still commit fixes in the next few hours and if I > > don't hear of any serious show stoppers, I'll re-bundle and release beta 4 > > later today. > >Andi, > >Not a big issue, but a different behaviour compared with beta3 and some >following snapshots. > >class Test { > function __set($n, $v) { > throw new Exception('error'); > } >} > >function f() { > $o = new Test(); > $o->foo = 5; >} > >f(); >?> > >Reports: >Fatal error: Uncaught exception 'exception' with message 'error' in >/var/www/html/set.php:5 >Stack trace: >#0 /var/www/html/set.php(11): Test->__set() >#1 /var/www/html/set.php(11): f() >#2 /var/www/html/set.php(14): f() >#3 {main} > thrown in /var/www/html/set.php on line 5 > >There is an additional #1 in the stack trace. >When executed outside the context of a function, the reported function is >"unknown()". > >This also happens with __get, __toString, __call and __clone. But not with >__construct and __destruct. This is a result of the exceptions having been broken in B3 and being triggered too late (thus, not finding f() twice on the stack). We will need to investigate it before RC1. Andi