Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15275 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97542 invoked by uid 1010); 6 Mar 2005 05:50:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 97527 invoked from network); 6 Mar 2005 05:50:21 -0000 Received: from unknown (HELO dtlink.com) (127.0.0.1) by localhost with SMTP; 6 Mar 2005 05:50:21 -0000 X-Host-Fingerprint: 207.192.181.155 master.nbinteractive.com Linux 2.4/2.6 Received: from ([207.192.181.155:47902] helo=master.nbinteractive.com) by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP id 67/BC-29225-D1A9A224 for ; Sun, 06 Mar 2005 00:50:21 -0500 Received: (qmail 4394 invoked by uid 511); 6 Mar 2005 06:05:15 -0000 Received: from yml@dtlink.com by master.nbinteractive.com by uid 89 with qmail-scanner-1.20 (clamscan: 0.65. Clear:RC:1(127.0.0.1):. Processed in 0.024009 secs); 06 Mar 2005 06:05:15 -0000 Received: from unknown (HELO secure.fieldpost.com) (yml@smtp.yml.com@127.0.0.1) by localhost with SMTP; 6 Mar 2005 06:05:15 -0000 Received: from 207.192.181.138 (SquirrelMail authenticated user yml@smtp.yml.com) by secure.fieldpost.com with HTTP; Sun, 6 Mar 2005 01:05:15 -0500 (EST) Message-ID: <64503.207.192.181.138.1110089115.squirrel@secure.fieldpost.com> Date: Sun, 6 Mar 2005 01:05:15 -0500 (EST) To: internals@lists.php.net Reply-To: yml@dtlink.com User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Subject: PHP 5.0.3 losing $this bug 31508 and PHP 4.3.10 spinning bug 31525 From: yml@dtlink.com ("Yermo Lamers") Just to followup on today's threads on both the strange PHP 4.3.10 apache coredump/sitting and spinning in malloc() bug #31508 and the losing $this variable bug 31525. Both, it turns out, were caused because I was returning references inside parenthetical expression on return(). i.e. function &somefunc() { return( $somevar ) } In the test case, PHP 5.0.3 with E_STRICT turned on correctly identified this as an error. However, running the full body of code I have through it /did not/. I went through and replaced all my return( xxx ); calls to return xxx; and retried. Under PHP 5.0.3 it ran like a champ. And to my surprise the PHP 4.3.10 sitting/spinning/coredump problem I had noticed also disappeared (I had a very specific setup that was reproducing the problem consistently.) If return( $this ) is not correct for a function returning a reference, it seems to me both PHP 4.3 and PHP 5 should generate some kind of error message even without E_STRICT. thanks again for everyones help, -- Yermo ---------------------------------------------------------------------------- DTLink Software http://www.dtlink.com Desktop Software and Web Applications ----------------------------------------------------------------------------