Bug #19326 [Opn->Csd]: raiseError issue
| From: | daniel dot oconnor at gmail dot com | Date: | Sat, 31 Mar 2012 17:10:31 +0000 |
| Subject: | Bug #19326 [Opn->Csd]: raiseError issue | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-8476@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19326&edit=1
ID: 19326
Updated by: daniel.oconnor@gmail.com
Reported By: zigo at debian dot org
Summary: raiseError issue
-Status: Open
+Status: Closed
Type: Bug
Package: XML_Parser2
Operating System: Debian
PHP Version: 5.4.0
-Assigned To:
+Assigned To: doconnor
Roadmap Versions:
New Comment:
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: doconnor
This bug has been fixed in SVN.
If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).
If this was a problem with the pear.php.net website, the change should
be live shortly.
Otherwise, the fix will appear in the package's next release.
Thank you for the report and for helping us make PEAR better.
Fixed in git - there's now exceptions, instead of PEAR_Errors.
Previous Comments:
------------------------------------------------------------------------
[2012-03-31 18:09:46] doconnor
-Package: XML_Parser
+Package: XML_Parser2
------------------------------------------------------------------------
[2012-03-30 22:38:27] zigo_debian
Hi,
If you didn't notice, my patch renamed $msg into $message in the
function definition, which is obviously wrong. I wont upload another
patch, as I guess that you'll be able to manage this.
Cheers,
Thomas
------------------------------------------------------------------------
[2012-03-30 22:08:25] zigo_debian
Hi,
Please apply the patch that I have added ASAP. This patch removes one of
the constructor which is defined twice, and which isn't acceptable. It
also removes the return by reference, and fixes the raiseError()
definition which is wrong.
PLEASE do not tell again that you want to retain PHP4 compatibility.
People willing to use an old version of PHP can also use an old version
of your class, that wouldn't be right to leave people following PHP
development and keeping conscientiously their server up-to-date that you
don't want to help them.
I hope this patch will help to have an upstream version fixed ASAP and
that this time, it wont take so much time to have such small fixes
upstreamed,
Cheers,
Thomas Goirand (zigo)
------------------------------------------------------------------------
[2012-03-30 22:04:58] zigo_debian
Added #patch
bug:19326;patch:0001-PHP-5.4-strict-standard-compat;revision:1333141498;.
------------------------------------------------------------------------
[2012-03-09 10:28:58] zigo_debian
Description:
------------
When using XML_Parser with PHP 5.4, the following issue appears:
PHP Strict Standards: Declaration of XML_Parser::raiseError() should be
compatible with & PEAR::raiseError($message = NULL, $code = NULL, $mode
= NULL, $options = NULL, $userinfo = NULL, $error_class = NULL, $skipmsg
= false) in /usr/share/php/XML/Parser.php on line 703
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19326&edit=1