ID: 39517 Updated by: [EMAIL PROTECTED] Reported By: thisbizness at gmail dot com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Windows XP PHP Version: Irrelevant New Comment:
This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2006-11-15 01:10:30] thisbizness at gmail dot com Description: ------------ PHP Manual, Chap 19: Classes and Objects (PHP 5), Section: The Basics, Paragraph: 'extends'. link: http://www.php.net/manual/en/language.oop5.basic.php Manual Excerpt: "It is possible to access the overrided method or members by referencing them with parent::" My comments: 1- It is clearly possible to access parent *methods* like described. No problem here. 2- class *members* on the other hand need to be declared as static in the parent class in order to be referenced with the 'parent' or 'self' keywords by a child class. 3- Accessing static class members from instantiated class object is not possible (i.e. the '$this' self reference doesn't work with them), I suggest to include a reference link to the 'Static Keyword' page for explanation: PHP Manual, Chap 19: Classes and Objects (PHP 5), Section: Static Keyword. link: http://www.php.net/manual/en/language.oop5.static.php ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39517&edit=1