Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52010 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14741 invoked from network); 26 Apr 2011 00:45:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Apr 2011 00:45:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=mail_ben_schmidt@yahoo.com.au; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mail_ben_schmidt@yahoo.com.au; sender-id=unknown; domainkeys=good Received-SPF: error (pb1.pair.com: domain yahoo.com.au from 98.139.91.87 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mail_ben_schmidt@yahoo.com.au X-Host-Fingerprint: 98.139.91.87 nm17.bullet.mail.sp2.yahoo.com Received: from [98.139.91.87] ([98.139.91.87:29521] helo=nm17.bullet.mail.sp2.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 44/89-40703-4B516BD4 for ; Mon, 25 Apr 2011 20:45:43 -0400 Received: from [98.139.91.62] by nm17.bullet.mail.sp2.yahoo.com with NNFMP; 26 Apr 2011 00:45:28 -0000 Received: from [98.139.91.17] by tm2.bullet.mail.sp2.yahoo.com with NNFMP; 26 Apr 2011 00:45:28 -0000 Received: from [127.0.0.1] by omp1017.mail.sp2.yahoo.com with NNFMP; 26 Apr 2011 00:45:28 -0000 X-Yahoo-Newman-Id: 576458.77823.bm@omp1017.mail.sp2.yahoo.com Received: (qmail 24026 invoked from network); 26 Apr 2011 00:45:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.au; h=DKIM-Signature:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=APX2XDS7OuqPks1kdlbxIMVDa5YqheDB86okNvneBaK1+n7Z9ny80PNhMaOrh5l5SfiN5hoWOyo87UYkJSG2stJXg9Kz4LvaRqAQYkD1A2+YE6fSIJTeDfYDWAvYx2dWJmfa3j9nl4epS6A5vVY59MrdD26RlbUSYPm7VKdMvHs= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s1024; t=1303778728; bh=6VvzRRTPGiqq0G8X4sCb7ia/7IP9j1fOr6pD3IUaKaY=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=N0WLucDpUr7d53+udz9vKicTDOaWAEYWuch4hkVOEGCeuxFq9SgFtbA+jS3PUl8igt9uBi7cRoKHRsfoLYAQgfvlcsEcqwqXTGFfQVgxxNFC3IZkEor/FoactYQusuyemUNocAICDyh6m7CCiu27zrnKaI+W3YkXql8p7F4u+aM= Received: from 194.20.70.115.static.exetel.com.au (mail_ben_schmidt@115.70.20.194 with plain) by smtp143.mail.mud.yahoo.com with SMTP; 25 Apr 2011 17:45:27 -0700 PDT X-Yahoo-SMTP: enFMnPSswBAexaHyzgobwuUTrYOhZdJ0KRA2SjA- X-YMail-OSG: dmKlQFcVM1kJLPkMuVn1M8.eMdh5PmeVXdo7Di1.t3jnhpT h_8UQib.A1LMCjEka9p_xPkDEYf_AFU9UdRurTIkJulPxRu2Ci3YkoTVOTv1 HEty8XwXNTBQhJ8DKjZgYNLL4hYzi4.TiIXYKXEZOuKfNraPckMu3ZA15KOo Co_0eIqnROFxUgQvYs0fQsuqR7IalcFVrkDbCtJWvxo8hh.uM8ufnLaikoxk Kn7fZBM2q9FW7WFlvD7Mza5i4166Y.iiNaqyrbl.7dHZYiy_smIPrvFkN8WY iZYlLNWz0pT2OhldVvJNFXiv073bkLV9JgbFzPRhXX7YVue4v.dQNF45V9K7 Pvv.acW6BGKkQlozvWeAs0Rf4Uro- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4DB613C0.4060905@yahoo.com.au> Date: Tue, 26 Apr 2011 10:37:20 +1000 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 ThunderBrowse/3.3.5 MIME-Version: 1.0 To: Martin Scotta CC: PHP internals list References: <5870D50E38AE4374833F83A59ABFB59E@gmail.com> <4DB4847B.3080004@gmail.com> <20110424202353.GC21102@crousti> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Call non-static method staticly raise E_STRICT, but why call a static method instancely won't From: mail_ben_schmidt@yahoo.com.au (Ben Schmidt) > Back in PHP4 it was the only way to "simulate" an static call, but > nowadays it really don't make sense at all. > > class Foo { > static function toString(Bar $bar) { > return 'Foo::toString($bar)'; > } > function toString() { > return '$this->toString()'; > } > } > > $foo = new Foo(); > echo $foo->toString(); // instance > echo Foo::toString(); // class > > PHP will complain about the 2nd method (can't redefine function) but for me > are 2 completely different methods. > I belive the current Object Model could be improved. isn't? I agree. Backward compatibility is the only reason to keep this. It's a pretty compelling reason, though. It's hard to know how to phase it out "non-invasively", too. Ben.