Description: Makes the Parser.php compatible with PHP 5.4 strict standards
 This patch fixes the following issues:
   * PHP Strict Standards:  Redefining already defined constructor for class
   XML_Parser in /usr/share/php/XML/Parser.php on line 227
   * 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 117
   * A return of a reference in the raiseError() function.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no

--- a/XML_Parser-1.3.4/Parser.php	2012-04-09 16:00:17.000000000 +0000
+++ b/XML_Parser-1.3.4/Parser.php	2012-04-09 16:00:52.000000000 +0000
@@ -192,26 +192,6 @@
     var $_validEncodings = array('ISO-8859-1', 'UTF-8', 'US-ASCII');
 
     // }}}
-    // {{{ php4 constructor
-
-    /**
-     * Creates an XML parser.
-     *
-     * This is needed for PHP4 compatibility, it will
-     * call the constructor, when a new instance is created.
-     *
-     * @param string $srcenc source charset encoding, use NULL (default) to use
-     *                       whatever the document specifies
-     * @param string $mode   how this parser object should work, "event" for
-     *                       startelement/endelement-type events, "func"
-     *                       to have it call functions named after elements
-     * @param string $tgtenc a valid target encoding
-     */
-    function XML_Parser($srcenc = null, $mode = 'event', $tgtenc = null)
-    {
-        XML_Parser::__construct($srcenc, $mode, $tgtenc);
-    }
-    // }}}
     // {{{ php5 constructor
 
     /**
@@ -224,7 +204,7 @@
      *                       to have it call functions named after elements
      * @param string $tgtenc a valid target encoding
      */
-    function __construct($srcenc = null, $mode = 'event', $tgtenc = null)
+    function XML_Parser($srcenc = null, $mode = 'event', $tgtenc = null)
     {
         $this->PEAR('XML_Parser_Error');
 
@@ -610,10 +590,10 @@
      *
      * @return XML_Parser_Error reference to the error object
      **/
-    function &raiseError($msg = null, $ecode = 0)
+    function &raiseError($msg = NULL, $ecode = NULL, $mode = NULL, $options = NULL, $userinfo = NULL, $error_class = NULL, $skipmsg = false)
     {
         $msg = !is_null($msg) ? $msg : $this->parser;
-        $err = &new XML_Parser_Error($msg, $ecode);
+        $err = new XML_Parser_Error($msg, $ecode);
         return parent::raiseError($err);
     }
 
