Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50695 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45942 invoked from network); 29 Nov 2010 14:59:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Nov 2010 14:59:52 -0000 Authentication-Results: pb1.pair.com header.from=doctorrock83@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=doctorrock83@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: doctorrock83@gmail.com X-Host-Fingerprint: 209.85.216.42 mail-qw0-f42.google.com Received: from [209.85.216.42] ([209.85.216.42:47818] helo=mail-qw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 94/B0-42097-7EFB3FC4 for ; Mon, 29 Nov 2010 09:59:52 -0500 Received: by qwj8 with SMTP id 8so94981qwj.29 for ; Mon, 29 Nov 2010 06:59:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=SJ+hJKhibdb2tFJJ/+K3s2gHpF5WgKsM2XNipnFmCbc=; b=NV4szO6Gfb+FCgUYTGSva4fHePju8aoAJh2DH3G9KHtYuk6n3jq+3ZMEuOnua8XajB mGZZXlkm3y7U555kjCgphz+HmYTCCcvTDe0cSaLfNfKxfeV/SCxTHFbVBn0KpwnoAYa5 pyJxrVfpoU1gaYfptOM1iolMKP/JFCpdQgWpA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=FMjYABOoEyTvhjU4m/FYRIBSaxKhY9XBMpl9kT8TPz32dDO8Tv17uW3uZisAGDAMgo 6wjq3CKJ8g8ilsFPMGFiNAKYZiMUT3QQSsL5wjspu/tCUU9mnooSN5OwgWxA85j29t7u 0v4YFmzb491Y10AvEgnlnxXvrbunDVwyAZ3Jo= Received: by 10.224.137.195 with SMTP id x3mr5469533qat.103.1291042789457; Mon, 29 Nov 2010 06:59:49 -0800 (PST) MIME-Version: 1.0 Sender: doctorrock83@gmail.com Received: by 10.220.102.72 with HTTP; Mon, 29 Nov 2010 06:59:09 -0800 (PST) In-Reply-To: References: <4CF35BBA.3040006@zend.com> Date: Mon, 29 Nov 2010 15:59:09 +0100 X-Google-Sender-Auth: HTBZkvCAyXWdL5WV9U_gvFVYXyM Message-ID: To: Felipe Pena Cc: Dmitry Stogov , internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] new foo()->bar() From: jpauli@php.net (Julien Pauli) Care should be taken in the case of new myClass()->foo() just creates an object to call a method but a static method would be more efficient here. However, well used (fluent interface for exemple) make me think +1 for that patch. J.Pauli On Mon, Nov 29, 2010 at 12:40 PM, Felipe Pena wrote: > Hi Dmitry, > > 2010/11/29 Dmitry Stogov > >> =A0Hi Felipe, > > >> I'm wondered it works out of the box with so small patches :) >> >> However, both patches introduce new parser conflicts and it would be gra= te >> to avoid them. >> >> > I will check if there is any way to avoid it. > > >> Also the patches need to be checked for memory leaks in case of exceptio= ns >> thrown from constructor and chained function(s). >> > > Yes, I already did several tests to check this. > > >> It also probably makes sense to add array deference chaining e.g. new >> Foo()[] (just for language consistency). >> >> > Hmm, looks good to me. :) > > > Thanks. > > -- > Regards, > Felipe Pena >