#39517 [NEW]: inaccurate or incomplete statement
| From: | thisbizness at gmail dot com | Date: | Wed, 15 Nov 2006 01:10:30 +0000 |
| Subject: | #39517 [NEW]: inaccurate or incomplete statement | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969374391@lists.php.net to get a copy of this message | ||
From: thisbizness at gmail dot com
Operating system: Windows XP
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: inaccurate or incomplete statement
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 bug report at http://bugs.php.net/?id=39517&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39517&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39517&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39517&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39517&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=39517&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39517&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39517&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39517&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39517&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39517&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=39517&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=39517&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39517&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39517&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39517&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39517&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39517&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39517&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39517&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39517&r=mysqlcfg