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

ID: 16672
Updated by: demon.gene@gmail.com
Reported By: andres at alfaroweb dot com
Summary: Strict Standards: Redefining already defined
constructor for class XML_Parser
Status: Open
Type: Bug
-Package: XML_Serializer
+Package: XML_Parser
Operating System: Linux
Package Version: 0.20.0
PHP Version: 5.2.5
-Assigned To:
+Assigned To: ashnazg
Roadmap Versions:
New Comment:

-Package: XML_Serializer
+Package: XML_Parser
-Assigned To:
+Assigned To: ashnazg
It's due to the combination of needing both the PHP4 constructor
declaration XML_Parser() and the PHP5 constructor __construct() for
compatibility.

E_STRICT compatibility is only required for new, PHP5-only packages.
XML_Parser was written before that regulation and is PHP4-compatible.


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

[2009-10-02 15:53:25] #cf3fc689f874728d642

Description:
------------
Hi, I'm using XML package with symfony, and I get this error: Strict
Standards: Redefining already defined constructor for class XML_Parser
in /usr/local/lib/php/XML/Parser.php on line 227

Do you know how can I resolve this?

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

Search Discussions

  • Demon Gene at Oct 2, 2009 at 2:35 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=16672&edit=1

    ID: 16672
    Updated by: demon.gene@gmail.com
    Reported By: andres at alfaroweb dot com
    Summary: Strict Standards: Redefining already defined
    constructor for class XML_Parser
    Status: Assigned
    Type: Bug
    Package: XML_Parser
    Operating System: Linux
    PHP Version: 5.2.5
    Assigned To: ashnazg
    Roadmap Versions:
    New Comment:

    I'll see if omitting the PHP5 constructor will still allow the class to
    work in PHP5...


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

    [2009-10-02 16:28:40] ashnazg

    -Package: XML_Serializer
    +Package: XML_Parser
    -Assigned To:
    +Assigned To: ashnazg
    It's due to the combination of needing both the PHP4 constructor
    declaration XML_Parser() and the PHP5 constructor __construct() for
    compatibility.

    E_STRICT compatibility is only required for new, PHP5-only packages.
    XML_Parser was written before that regulation and is PHP4-compatible.

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

    [2009-10-02 15:53:25] #cf3fc689f874728d642

    Description:
    ------------
    Hi, I'm using XML package with symfony, and I get this error: Strict
    Standards: Redefining already defined constructor for class XML_Parser
    in /usr/local/lib/php/XML/Parser.php on line 227

    Do you know how can I resolve this?

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedOct 2, '09 at 2:28p
activeOct 2, '09 at 2:35p
posts2
users1
websitepear.php.net

1 user in discussion

Demon Gene: 2 posts

People

Translate

site design / logo © 2022 Grokbase