note 54919 added to language.oop5.static

From: Date: Tue, 19 Jul 2005 16:14:24 +0000
Subject: note 54919 added to language.oop5.static
Groups: php.notes 
Request: Send a blank email to php-notes+get-92177@lists.php.net to get a copy of this message
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. :) ---- Manual Page -- http://www.php.net/manual/en/language.oop5.static.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54919 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54919&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54919&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54919&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54919&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54919&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54919&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54919&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92177) next »