Bug #17176 [Com]: phpdoc doesn't understand namespaces
| From: | vovan_ve | Date: | Fri, 04 Jun 2010 12:26:18 +0000 |
| Subject: | Bug #17176 [Com]: phpdoc doesn't understand namespaces | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-3873@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=17176&edit=1
ID: 17176
Comment by: vovan_ve
Reported By: vovan-ve at yandex dot ru
Summary: phpdoc doesn't understand namespaces
Status: Open
Type: Bug
Package: PhpDocumentor
Operating System: debian linux
Package Version: 1.4.3
PHP Version: 5.3.0
New Comment:
On WindowsXP, PHP/5.3.2 for the same code above PhpDocumentor 1.4.3
understands that class Exception is derived from class \
\
|
--Exception
Previous Comments:
------------------------------------------------------------------------
[2010-03-01 12:22:37] poefke645
Description:
------------
When using namespaces phpdoc doesn't allow you to name your
classes the same as the class you are extending (from another
namespace).
Test script:
---------------
<?php
namespace ripcord;
/**
* The ripcord exception class.
*/
class Exception extends \Exception {
}
?>
Expected result:
----------------
When running phpdocumentor on the above test script, I would
like to see a documentation page appear as output somewhere.
Actual result:
--------------
Instead I get:
ERROR in ripcord.php on line 8: class Exception cannot extend
itself - TEST YOUR CODE BEFORE PARSING
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=17176&edit=1