Bug #19325 [Opn]: Constructor defined twice
| From: | zigo at debian dot org | Date: | Sat, 31 Mar 2012 16:32:16 +0000 |
| Subject: | Bug #19325 [Opn]: Constructor defined twice | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-8470@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: zigo@debian.org
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:
Hi,
By "BC", do you mean "backward compatibility"? If so, BC for WHAT? In
what way my patches are affecting backward compatibility?
Currently, we have quite few reverse dependency:
Config
File_XSPF
Gtk_MDB_Designer
Image_JpegMarkerReader
Image_JpegXmpReader
MDB
MDB2 (versions <= 2.0.0beta4)
MDB2_Schema
Net_Nmap
Payment_Process
PECL_Gen (versions <= 0.8.5)
Services_Yahoo_JP (versions <= 0.1.0)
System_ProcWatch
Text_Highlighter
Tree
VersionControl_SVN
XML_Beautifier
XML_DTD
XML_MXML
XML_NITF
XML_RDDL
XML_RSS
XML_Serializer
XML_Statistics
XML_Tree
XML_Wddx
XML_XUL
So, what do you want to do with these packages, that needs a working
XML_Parser? Just give-up and let them die, and stop working with PHP
5.4? I really don't get what your logic is. Please do care to explain
what is your view here.
Thomas
Previous Comments:
------------------------------------------------------------------------
[2012-03-31 16:32:50] doconnor
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.
------------------------------------------------------------------------
[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