Re: [PEPr] Comment on Web Services::Services_TinyURL

From: Date: Tue, 11 Sep 2007 18:05:07 +0000
Subject: Re: [PEPr] Comment on Web Services::Services_TinyURL
References: 1 2 3 4 5 6 7 8 9  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-47993@lists.php.net to get a copy of this message
Joe Stump wrote: >> No notice, no E_STRICT. Seems to be fine. Hence, Travis can extend the >> class for unittests without making the code any more complicated. ;-) > > Since when does PHP5 allow you to call static methods non-statically > without throwing a notice? This is news to me. The only thing the "static" keyword does is not set up $this inside a method. You can still call it from an object instance but it behaves the same way. It's not rocket science, but it does make things better imo. The PEAR class had tremendous problems with calls to methods in other classes intended to be static that also doubled as non-static such as raiseError(), which would use the local settings if a class extended PEAR. Anyways, static has worked this way since PHP 5.0, welcome to PHP 5 :) Greg

« previous php.pear.dev (#47993) next »