Bug #19325 [Opn]: Constructor defined twice
| From: | daniel dot oconnor at gmail dot com | Date: | Sat, 31 Mar 2012 15:32:50 +0000 |
| Subject: | Bug #19325 [Opn]: Constructor defined twice | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-8469@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19325&edit=1
ID: 19325
Updated by: daniel.oconnor@gmail.com
Reported By: zigo at debian dot org
Summary: Constructor defined twice
Status: Open
Type: Bug
Package: XML_Parser
Operating System: Debian
Package Version: 1.3.4
PHP Version: 5.4.0
Roadmap Versions:
New Comment:
Thanks for the patch Thomas, but I can't put it on XML_Parser for BC
reasons.
I'm going to fork and create an XML_Parser2 which lets us sidestep the
BC
concerns.
Previous Comments:
------------------------------------------------------------------------
[2012-03-30 22:03:59] zigo_debian
Added #patch
bug:19325;patch:0001-PHP-5.4-strict-standard-compat;revision:1333141439;.
------------------------------------------------------------------------
[2012-03-09 10:25:23] zigo_debian
Description:
------------
Hi,
The class defines twice the constructor. Once using XML_Parser(), and
once using __construct(). With PHP 5.4, this triggers a warning, which
is very annoying when parsing XML (this can destroy the output of a
document):
PHP Strict Standards: Redefining already defined constructor for class
XML_Parser in /usr/share/php/XML/Parser.php on line 227
Thanks to remove one of the 2 methods.
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19325&edit=1