Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35939 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96391 invoked from network); 4 Mar 2008 02:31:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Mar 2008 02:31:53 -0000 Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.184.227 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 64.233.184.227 wr-out-0506.google.com Received: from [64.233.184.227] ([64.233.184.227:39361] helo=wr-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DA/63-29055-894BCC74 for ; Mon, 03 Mar 2008 21:31:53 -0500 Received: by wr-out-0506.google.com with SMTP id c48so227584wra.23 for ; Mon, 03 Mar 2008 18:31:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=gVjWkXvWKpn12qmg7c2E2Fqo5IZqZGtHSgAfbk5rkIA=; b=jsKFpbxhIapQJggdnBLYBZXQUEXhfUwBlCTFeFF4GOL3YYME2k50ZnnZqJ6iXTitRHlbBgmfTHIBhatFrd6mLA6EZJlANsnQlYNGZo5IPT5x2FdbY0Bl6tqCbZL4P2WTEwbHkECsJY1B9E6oNISgxFg660hQtmSCaDW5Tclu6cI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=FiCJLThGmoKD2+gKuZbkXoaIboTCWlKJc9guWtpVJR83deDkxwZy5RkNK65T8Vn2FVRHRxn+RUbZnegmuF2geTeGnBc8XpqJGNj+Tx1Efv7CiM21o8uy7C7bCX+d2fZOX/YPfXKePA5h+tCWdrRFBHyPrkTIGdf/kf3zCZ4W/6Y= Received: by 10.100.109.13 with SMTP id h13mr930723anc.52.1204597910085; Mon, 03 Mar 2008 18:31:50 -0800 (PST) Received: from ?192.168.1.2? ( [189.24.126.3]) by mx.google.com with ESMTPS id e27sm1787031elf.1.2008.03.03.18.31.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 03 Mar 2008 18:31:48 -0800 (PST) To: Arnold Daniels Cc: 'PHP Internals' In-Reply-To: <1204595482.5832.32.camel@pena> References: <47CC968A.9060209@adaniels.nl> <1204595482.5832.32.camel@pena> Content-Type: text/plain; charset=utf-8 Date: Mon, 03 Mar 2008 23:31:18 -0300 Message-ID: <1204597878.5832.37.camel@pena> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Bug when throwing an Exception in a constructor From: felipensp@gmail.com (Felipe Pena) Em Seg, 2008-03-03 às 22:51 -0300, Felipe Pena escreveu: > Hello. > > > Index: Zend/zend_exceptions.c > =================================================================== > RCS file: /repository/ZendEngine2/zend_exceptions.c,v > retrieving revision 1.79.2.6.2.9.2.4 > diff -u -p -r1.79.2.6.2.9.2.4 zend_exceptions.c > --- Zend/zend_exceptions.c 21 Jan 2008 19:39:55 -0000 > 1.79.2.6.2.9.2.4 > +++ Zend/zend_exceptions.c 4 Mar 2008 01:47:35 -0000 > @@ -734,6 +734,7 @@ ZEND_API void zend_throw_exception_objec > zend_error(E_ERROR, "Exceptions must be valid objects > derived from the Exception base class"); > } > zend_throw_exception_internal(exception TSRMLS_CC); > + zend_clear_exception(TSRMLS_C); > } > /* }}} */ > > > This looks good enough? > Oh, no... In fact leaks doesn't occur with the zend_clear_exception call. However, this breaks *several* tests... -- Regards, Felipe Pena.