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 #6423

many warnings, notices and fatal error

Details

Submitted2006-01-06 03:22 UTC
Fromwaboring at 3gstech dot com
StatusNo Feedback
PackagePhpDocumentor
PHP Version5.1.1
OSgentoo linux
Roadmaps(Not assigned)

Comments

[2006-01-06 03:22 UTC] waboring at 3gstech dot com

Description:
------------
/usr/local/bin/phpdoc -o HTML:default:phphtmllib \
-j \
-q \
-s \
-t doc \
-d ../src -dn Test \
-ti MyProject

Actual result:
--------------
Notice: Only variable references should be returned by reference in /usr/local/lib/php/PhpDocumentor/phpDocumentor/Converter.inc on line 3811

Call Stack:
0.0005 1. {main}() /usr/local/bin/phpdoc:0
0.0008 2. include('/usr/local/lib/php/PhpDocumentor/phpDocumentor/phpdoc.inc') /usr/local/bin/phpdoc:37
0.1889 3. phpDocumentor_setup->createDocs() /usr/local/lib/php/PhpDocumentor/phpDocumentor/phpdoc.inc:44
183.5509 4. phpDocumentor_IntermediateParser->Output() /usr/local/lib/php/PhpDocumentor/phpDocumentor/Setup.inc.php:655
199.3796 5. phpDocumentor_IntermediateParser->Convert() /usr/local/lib/php/PhpDocumentor/phpDocumentor/IntermediateParser.inc:1769
199.3797 6. Converter->walk() /usr/local/lib/php/PhpDocumentor/phpDocumentor/IntermediateParser.inc:1560
774.1483 7. Converter->Convert() /usr/local/lib/php/PhpDocumentor/phpDocumentor/Converter.inc:1871
774.1485 8. HTMLframesConverter->convertMethod() /usr/local/lib/php/PhpDocumentor/phpDocumentor/Converter.inc:3879
774.1487 9. Converter->convertMethod() /usr/local/lib/php/PhpDocumentor/phpDocumentor/Converters/HTML/frames/HTMLframesConverter.inc:1027
774.1682 10. parserReturnTag->Convert() /usr/local/lib/php/PhpDocumentor/phpDocumentor/Converter.inc:4012
774.1682 11. Converter->getLink() /usr/local/lib/php/PhpDocumentor/phpDocumentor/DocBlockTags.inc:331
774.1683 12. Converter->_getLink() /usr/local/lib/php/PhpDocumentor/phpDocumentor/Converter.inc:3488
774.1729 13. Converter->getLinkConst() /usr/local/lib/php/PhpDocumentor/phpDocumentor/Converter.inc:3538

Fatal error: Call to a member function Convert() on a non-object in /usr/local/lib/php/PhpDocumentor/phpDocumentor/DocBlockTags.inc on line 82

Call Stack:
0.0005 1. {main}() /usr/local/bin/phpdoc:0
0.0008 2. include('/usr/local/lib/php/PhpDocumentor/phpDocumentor/phpdoc.inc') /usr/local/bin/phpdoc:37
0.1889 3. phpDocumentor_setup->createDocs() /usr/local/lib/php/PhpDocumentor/phpDocumentor/phpdoc.inc:44
183.5509 4. phpDocumentor_IntermediateParser->Output() /usr/local/lib/php/PhpDocumentor/phpDocumentor/Setup.inc.php:655
199.3796 5. phpDocumentor_IntermediateParser->Convert() /usr/local/lib/php/PhpDocumentor/phpDocumentor/IntermediateParser.inc:1769
199.3797 6. Converter->walk() /usr/local/lib/php/PhpDocumentor/phpDocumentor/IntermediateParser.inc:1560
774.2800 7. Converter->Convert() /usr/local/lib/php/PhpDocumentor/phpDocumentor/Converter.inc:1830
774.2800 8. HTMLframesConverter->convertFunction() /usr/local/lib/php/PhpDocumentor/phpDocumentor/Converter.inc:3879
774.2804 9. Converter->convertFunction() /usr/local/lib/php/PhpDocumentor/phpDocumentor/Converters/HTML/frames/HTMLframesConverter.inc:1038
774.2816 10. parserReturnTag->Convert() /usr/local/lib/php/PhpDocumentor/phpDocumentor/Converter.inc:4283
774.2914 11. parserTag->Convert() /usr/local/lib/php/PhpDocumentor/phpDocumentor/DocBlockTags.inc:340

[2006-01-06 18:54 UTC] waboring at 3gstech dot com

I am also getting a lot of these notices....

Notice: Object of class parserIdInlineTag could not be converted to int in /usr/local/lib/php/PhpDocumentor/phpDocumentor/XMLpackagePageParser.inc on line 216

Call Stack:
0.0002 1. {main}() /usr/local/bin/phpdoc:0
0.0005 2. include('/usr/local/lib/php/PhpDocumentor/phpDocumentor/phpdoc.inc') /usr/local/bin/phpdoc:37
0.1270 3. phpDocumentor_setup->createDocs() /usr/local/lib/php/PhpDocumentor/phpDocumentor/phpdoc.inc:44
2.4121 4. XMLPackagePageParser->parse() /usr/local/lib/php/PhpDocumentor/phpDocumentor/Setup.inc.php:625
2.7818 5. XMLPackagePageParser->handleQuote() /usr/local/lib/php/PhpDocumentor/phpDocumentor/XMLpackagePageParser.inc:162

[2006-01-26 13:48 UTC] r dot eckert at 21torr dot com

I fixed that Fatal Error by patching the script:
/usr/share/php/PhpDocumentor/phpDocumentor/DocBlockTags.inc
line 81:

from:
list(,$val) = each($this->value);
reset($this->value);
return $val->Convert($converter);

to:
list(,$val) = each($this->value);
$val = reset($this->value);
return $val->Convert($converter);

[2006-01-27 14:38 UTC] wilfried dot loche at fr dot adp dot com

This bugfix is perfect for the same issue I had :)

[2006-01-27 19:19 UTC] waboring at 3gstech dot com

I am still getting hundreds of these

Notice: Object of class parserIdInlineTag could not be converted to int in /usr/local/lib/php/PhpDocumentor/phpDocumentor/XMLpackagePageParser.inc on line 216
PHP Notice: Object of class parserIdInlineTag could not be converted to int in /usr/local/lib/php/PhpDocumentor/phpDocumentor/XMLpackagePageParser.inc on line 216

and these

Notice: Only variable references should be returned by reference in /usr/local/lib/php/PhpDocumentor/phpDocumentor/Converter.inc on line 3811
PHP Notice: Only variable references should be returned by reference in /usr/local/lib/php/PhpDocumentor/phpDocumentor/Converter.inc on line 3713