FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16431&edit=1

ID: 16431
Updated by: demon.gene@gmail.com
Reported By: sb at sebastian-bergmann dot de
Summary: Warning: get_class() expects parameter 1 to be
object, string given
Status: Assigned
Type: Bug
Package: PhpDocumentor
Operating System: Linux
Package Version: 1.4.2
PHP Version: 5.3.0
Assigned To: ashnazg
-Roadmap Versions:
+Roadmap Versions: 1.4.3
New Comment:

-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.


Previous Comments:
------------------------------------------------------------------------

[2009-07-24 07:36:56] doconnor

-Assigned To:
+Assigned To: ashnazg


------------------------------------------------------------------------

[2009-07-17 09:57:35] aharvey

The attached patch against the current SVN trunk fixes the warning.

------------------------------------------------------------------------

[2009-07-17 09:57:03] aharvey

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-12 18:32:12] sebastian

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

------------------------------------------------------------------------

Search Discussions

  • Demon Gene at Aug 8, 2009 at 5:22 am
    Edit report at http://pear.php.net/bugs/bug.php?id=16431&edit=1

    ID: 16431
    Updated by: demon.gene@gmail.com
    Reported By: sb at sebastian-bergmann dot de
    Summary: Warning: get_class() expects parameter 1 to be
    object, string given
    -Status: Assigned
    +Status: Closed
    Type: Bug
    Package: PhpDocumentor
    Operating System: Linux
    Package Version: 1.4.2
    PHP Version: 5.3.0
    Assigned To: ashnazg
    Roadmap Versions:
    New Comment:

    -Status: Assigned
    +Status: Closed
    Committed to SVN... thanks for the patch, Adam.


    Previous Comments:
    ------------------------------------------------------------------------

    [2009-08-08 07:15:58] ashnazg

    -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-07-24 07:36:56] doconnor

    -Assigned To:
    +Assigned To: ashnazg


    ------------------------------------------------------------------------

    [2009-07-17 09:57:35] aharvey

    The attached patch against the current SVN trunk fixes the warning.

    ------------------------------------------------------------------------

    [2009-07-17 09:57:03] aharvey

    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-12 18:32:12] sebastian

    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

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 8, '09 at 5:16a
activeAug 8, '09 at 5:22a
posts2
users1
websitepear.php.net

1 user in discussion

Demon Gene: 2 posts

People

Translate

site design / logo © 2022 Grokbase