Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26106 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25142 invoked by uid 1010); 20 Oct 2006 06:19:19 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 25127 invoked from network); 20 Oct 2006 06:19:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Oct 2006 06:19:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=jasper@albumltd.co.nz; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jasper@albumltd.co.nz; sender-id=unknown; domainkeys=bad (key type) Received-SPF: error (pb1.pair.com: domain albumltd.co.nz from 210.55.31.88 cause and error) DomainKey-Status: bad (key type) X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: jasper@albumltd.co.nz X-Host-Fingerprint: 210.55.31.88 mail.albumltd.co.nz Linux 2.5 (sometimes 2.4) (4) Received: from [210.55.31.88] ([210.55.31.88:57129] helo=mail.albumltd.co.nz) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 34/2E-27040-36A68354 for ; Fri, 20 Oct 2006 02:19:16 -0400 Received: from mail.albumltd.co.nz (www.album.co.nz [127.0.0.1]) by mail.albumltd.co.nz (Postfix) with ESMTP id 2EB9EEDCA9; Fri, 20 Oct 2006 19:19:12 +1300 (NZDT) DomainKey-Signature: a=rsa-sha1; h=Received:Message-ID:Date:From:Organization:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:X-Enigmail-Version:OpenPGP:Content-Type:Content-Transfer-Encoding; b=BYNIplsQ2TJ+VERAmpH9vaPzQp9mu51f+eKZLSfVH8IMBdLYjB2kno0wtdV2U7Prev5RJVi8xMm46a3LFiUDc+eEcck6/X3O/JdPrzjkp8gHSBAYfcey9GMC9hlNOzkRF71cj261JpG7DzXmAvXITpNvvbBjR9v0mlstoQhf51k=; c=nofws; d=albumltd.co.nz; q=dns; s=ks1 Received: from [10.0.1.1] (222-154-246-93.adsl.xtra.co.nz [222.154.246.93]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jasper) by mail.albumltd.co.nz (Postfix) with ESMTP id 837B3275D; Fri, 20 Oct 2006 19:19:11 +1300 (NZDT) Message-ID: <45386AB4.60504@albumltd.co.nz> Date: Fri, 20 Oct 2006 19:20:36 +1300 Organization: Album Limited User-Agent: Thunderbird 1.5.0.7 (X11/20060909) MIME-Version: 1.0 To: Glenn Richmond CC: Christian Stocker , Lukas Kahwe Smith , internals@lists.php.net References: <18.FF.27040.69DE7354@pb1.pair.com> <453857D8.3020704@bitflux.ch> <45385952.7040400@ilisys.com.au> In-Reply-To: <45385952.7040400@ilisys.com.au> X-Enigmail-Version: 0.94.1.0 OpenPGP: id=0A3ABF58 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] a last plead From: jasper@albumltd.co.nz (Jasper Bryant-Greene) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Glenn, 'return $this' is perfectly acceptable and indeed very common code. It works fine for me in 5.1.4 - you might like to report a bug if you can reproduce a segfault... What is being referred to here is things like 'abstract static' functions that are completely meaningless from a theoretical point of view (static functions are bound to the class they are defined on and do not have inheritance rules so how can they be abstract?) but are still being used by some people. The argument is that we should not unnecessarily break these people's code just because it makes no sense. Personally, I don't buy into this argument. Perhaps if their code breaks and there is a good explanation in the error message, they might start writing OO code that isn't nonsensical. Jasper Glenn Richmond wrote: > Hmm, this is interesting - I just joined the mailing list, but I can > relate to this. I've come across a piece of code in that has the > following line in a function within a class: > > return $this; > > It seems to cause an over-allocation of memory and ultimately a seg > fault in both 5.1.4 and 5.2rc4, but works in 5.04. Is this the sort of > this that you're referring to? > > Glenn. > > Christian Stocker wrote: >> On 19.10.2006 23:26 Uhr, Lukas Kahwe Smith wrote: >> >>> Hi, >>> >>> I just want to say once again that all hell is going to break loose once >>> we release 5.2.0 as stable thanks to the various fatal errors we are >>> adding for perfectly working code that breaks OO theory. >>> >>> Now is the time to fix this before RC6. >>> >> +1 too here. >> >> It will IMHO slow down the adoption of 5.2, as - I assume - a >> significant part of scripts will fatal out in 5.2. And this certainly >> won't make all those people happy, who already had to rewrite their >> programs for making them 5.0/1 compatible >> >> chregu >> > - -- Jasper Bryant-Greene Director Album Limited jasper@albumltd.co.nz +64 21 708 334 / 0800 425 286 http://www.albumltd.co.nz/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5-ecc0.1.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iFcDBQFFOGq0nqZ4vwo6v1gRCv93AP40IC/FslI+O6BvPvSWwqQ8KzfJdZCoNxaW Qufw5UC2NQEAmbXhhotg72ht80f1t0sL8SWiPfonq6zAFDwSNdi7Mnc= =lMPv -----END PGP SIGNATURE-----