Req #51381 [NEW]: Clarify class definition order importance for multiple levels of inheritance
| From: | dhthwy at gmail dot com | Date: | Wed, 24 Mar 2010 15:05:50 +0000 |
| Subject: | Req #51381 [NEW]: Clarify class definition order importance for multiple levels of inheritance | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-4104@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: 5.2.13
Package: Documentation problem
Bug Type: Feature/Change Request
Bug description:Clarify class definition order importance for multiple levels of inheritance
Description:
------------
It is not clear from the PHP5 class documentation how important the order
of class definition is in the the context of multiple levels of
inheritance.
According to the PHP4 doc on extends @
http://php.net/manual/en/keyword.extends.php
the following code is
incorrect due to the order in which the classes are defined:
class one extends two {}
class two extends three {}
class three {}
However PHP5's docs make no mention if the order of definition is still
significant. OR if its only significant when there are multiple levels of
inheritance. The preceding code throws a fatal error 'class not found' for
the class two.
The following code however does work:
class one extends two {}
class two {}
Request clarification please.
--
Edit bug report at http://bugs.php.net/bug.php?id=51381&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51381&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51381&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51381&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=51381&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51381&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51381&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51381&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51381&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51381&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51381&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51381&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51381&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51381&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51381&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51381&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51381&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51381&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51381&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51381&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51381&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51381&r=mysqlcfg