PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Tools and Utilities » PhpDocumentor » Bug #7554

Call to undefined method ReflectionClass::hasMethod()

Details

Submitted2006-05-04 03:07 UTC
Fromgnarea at gmail dot com
Assignedcellog
StatusClosed
PackagePhpDocumentor
PHP Version5.0.4
Roadmaps(Not assigned)

Comments

[2006-05-04 03:07 UTC] gnarea at gmail dot com

Description:
------------
When I run phpdocumentor I get this fatal error:

Fatal error: Call to undefined method ReflectionClass::hasMethod() in /usr/local/php5/lib/php/PhpDocumentor/phpDocumentor/ParserElements.inc on line 1844

It's because method hasMethod() is available since PHP5.1, but I use v5.0.4.

By the way, I also get an E_NOTICE, but it has nothing to do with the previous problem, IMO. Anyway, this is the E_NOTICE:

Notice: Trying to get property of non-object in /usr/local/php5/lib/php/PhpDocumentor/phpDocumentor/Converter.inc on line 2622

Call Stack:
0.0194 1. {main}() /usr/local/php5/bin/phpdoc:0
0.0606 2. include() /usr/local/php5/bin/phpdoc:37
0.4722 3. phpDocumentor_setup->createDocs() /usr/local/php5/lib/php/PhpDocumentor/phpDocumentor/phpdoc.inc:61
24.3929 4. phpDocumentor_IntermediateParser->Output() /usr/local/php5/lib/php/PhpDocumentor/phpDocumentor/Setup.inc.php:671
27.5198 5. phpDocumentor_IntermediateParser->Convert() /usr/local/php5/lib/php/PhpDocumentor/phpDocumentor/IntermediateParser.inc:1796
27.5201 6. Converter->walk() /usr/local/php5/lib/php/PhpDocumentor/phpDocumentor/IntermediateParser.inc:1587
27.5204 7. Converter->_createPkgElements() /usr/local/php5/lib/php/PhpDocumentor/phpDocumentor/Converter.inc:1689
27.8058 8. Converter->addElement() /usr/local/php5/lib/php/PhpDocumentor/phpDocumentor/Converter.inc:1456
27.8066 9. Converter->addTodoLink() /usr/local/php5/lib/php/PhpDocumentor/phpDocumentor/Converter.inc:2662

Expected result:
----------------
A workaround for PHP5<5.1, please.

Actual result:
--------------
A call to a method defined in PHP5.1, which causes an E_ERROR in PHP5<=5.1.