Re: cvs: phpdoc /en/language/oop5 basic.xml

From: Date: Sat, 29 Jan 2005 18:12:14 +0000
Subject: Re: cvs: phpdoc /en/language/oop5 basic.xml
References: 1 2 3  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969366246@lists.php.net to get a copy of this message
It is still a problem in PHP 5? Huh.
I don't know if I'd consider it a problem, but yes, it still happens in PHP 5. I discovered this while working on Mail_Mime -- the only way I could come up with to detect if a method is being called statically (without hacking a special property into $object) was: // determine if this method has been called statically $isStatic = !(isset($this) && get_class($this) == __CLASS__); ... which is pretty hacky, but it works. I was tempted to drop this into the note, but held back (-: S

« previous php.doc (#969366246) next »