Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0a1

Bug #16431 Warning: get_class() expects parameter 1 to be object, string given
Submitted: 2009-07-12 22:32 UTC
From: sebastian Assigned: ashnazg
Status: Closed Package: PhpDocumentor (version 1.4.2)
PHP Version: 5.3.0 OS: Linux
Roadmaps: 1.4.3    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 19 - 4 = ?

 
 [2009-07-12 22:32 UTC] sebastian (Sebastian Bergmann)
Description: ------------ Warning: get_class() expects parameter 1 to be object, string given in /usr/share/pear/PhpDocumentor/phpDocumentor/common.inc.on line 306 Stack trace: 1. {main}() /usr/bin/phpdoc:0 2. require() /usr/bin/phpdoc:40 3. phpDocumentor_setup->createDocs() /usr/share/pear/PhpDocumentor/phpDocumentor/phpdoc.inc:65 4. phpDocumentor_IntermediateParser->Output() /usr/share/pear/PhpDocumentor/phpDocumentor/Setup.inc.php:754 5. phpDocumentor_IntermediateParser->Convert() /usr/share/pear/PhpDocumentor/phpDocumentor/IntermediateParser.inc:1865 6. Converter->walk() /usr/share/pear/PhpDocumentor/phpDocumentor/IntermediateParser.inc:1652 7. Converter->Convert() /usr/share/pear/PhpDocumentor/phpDocumentor/Converter.inc:1934 8. HTMLPhpucConverter->convertMethod() /usr/share/pear/PhpDocumentor/phpDocumentor/Converter.inc:3983 9. Converter->prepareDocBlock() /usr/share/pear/data/phpUnderControl/data/phpdoc/Converters/HTML/Phpuc/HTMLPhpucConverter.inc:1124 10. parserDocBlock->getDesc() /usr/share/pear/PhpDocumentor/phpDocumentor/Converter.inc:4565 11. parserStringWithInlineTags->Convert() /usr/share/pear/PhpDocumentor/phpDocumentor/ParserDocBlock.inc:506 12. parserCode->Convert() /usr/share/pear/PhpDocumentor/phpDocumentor/ParserData.inc:953 13. phpDocumentor_get_class() /usr/share/pear/PhpDocumentor/phpDocumentor/DescHTML.inc:95 14. get_class() /usr/share/pear/PhpDocumentor/phpDocumentor/common.inc.php:306

Comments

 [2009-07-17 13:57 UTC] aharvey (Adam Harvey)
The following patch has been added/updated: Patch Name: phpdocumentor-bug-16431-fix Revision: 1247821022 URL: http://pear.php.net/bugs/patch-display.php?bug=16431&patch=phpdocumentor-bug-16431-fix&revision=1247821022&display=1
 [2009-07-17 13:57 UTC] aharvey (Adam Harvey)
The attached patch against the current SVN trunk fixes the warning.
 [2009-07-24 11:36 UTC] doconnor (Daniel O'Connor)
-Assigned To: +Assigned To: ashnazg
 [2009-08-08 11:15 UTC] ashnazg (Chuck Burgess)
-Roadmap Versions: +Roadmap Versions: 1.4.3
Patched code worked fine on all PHP versions I tested (5.3.0, 5.2.10, 5.2.6, 5.1.6, 5.0.5, 4.4.9), and it does clear up the deprecation warnings regarding get_class() in 5.3.0.
 [2009-08-08 11:22 UTC] ashnazg (Chuck Burgess)
-Status: Assigned +Status: Closed
Committed to SVN... thanks for the patch, Adam.