note 54919 deleted from language.oop5.static by tularis

From: Date: Fri, 20 Jun 2008 18:22:13 +0000
Subject: note 54919 deleted from language.oop5.static by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-140627@lists.php.net to get a copy of this message
Note Submitter: daxxar ---- Heh. The last post, eh, is wrong. I didn't test it in PHP. I saw it as an aberration to C++ when I read it, which is why I commented on it. So, I guess I misread "A member or method declared with static can not be accessed with a variable that is an instance of the object and cannot be re-defined in an extending class." to mean that you can't call $foo->StaticFunc(), (and when I explained the issue in the #php-channel on EFNet, I was under the impression that others thought likewise), when I guess it means that you can't access $this *inside* StaticFunc(). I dunno. If it's a language bug, it should be fix, if it's a documentation "bug" (most likely), the documentation should be worded more cleary (rephrased), IMO. :)

« previous php.notes (#140627) next »