summaryrefslogtreecommitdiffstats
path: root/3dparty
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-04-17 11:18:17 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-04-17 11:29:43 +0200
commitfda445ab0536b06f8bb37b58413a25d97f4036a5 (patch)
tree825c088b9a49385dedc8910b29c16e6a8c6ac607 /3dparty
parentc5e270b45346ad7046cda64d73c5aae1f9679062 (diff)
downloadnextcloud-server-fda445ab0536b06f8bb37b58413a25d97f4036a5.tar.gz
nextcloud-server-fda445ab0536b06f8bb37b58413a25d97f4036a5.zip
fix strict errors in xml parser
Diffstat (limited to '3dparty')
-rw-r--r--3dparty/MDB2/Schema/Parser.php4
-rw-r--r--3dparty/XML/Parser.php28
2 files changed, 8 insertions, 24 deletions
diff --git a/3dparty/MDB2/Schema/Parser.php b/3dparty/MDB2/Schema/Parser.php
index 7c22012c416..bd7a9657932 100644
--- a/3dparty/MDB2/Schema/Parser.php
+++ b/3dparty/MDB2/Schema/Parser.php
@@ -120,7 +120,7 @@ class MDB2_Schema_Parser extends XML_Parser
{
// force ISO-8859-1 due to different defaults for PHP4 and PHP5
// todo: this probably needs to be investigated some more andcleaned up
- parent::XML_Parser('ISO-8859-1');
+ parent::__construct('ISO-8859-1');
$this->variables = $variables;
$this->structure = $structure;
@@ -503,7 +503,7 @@ class MDB2_Schema_Parser extends XML_Parser
$this->element = implode('-', $this->elements);
}
- function &raiseError($msg = null, $xmlecode = 0, $xp = null, $ecode = MDB2_SCHEMA_ERROR_PARSE)
+ function &raiseError($msg = null, $xmlecode = 0, $xp = null, $ecode = MDB2_SCHEMA_ERROR_PARSE,$a=null,$b=null,$c=null)
{
if (is_null($this->error)) {
$error = '';
diff --git a/3dparty/XML/Parser.php b/3dparty/XML/Parser.php
index 6b65066d028..38b4f8fe8a6 100644
--- a/3dparty/XML/Parser.php
+++ b/3dparty/XML/Parser.php
@@ -165,26 +165,6 @@ class XML_Parser extends PEAR
var $_handlerObj;
// }}}
- // {{{ 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 $tgenc a valid target encoding
- */
- function XML_Parser($srcenc = null, $mode = 'event', $tgtenc = null)
- {
- XML_Parser::__construct($srcenc, $mode, $tgtenc);
- }
- // }}}
/**
* PHP5 constructor
@@ -560,7 +540,11 @@ class XML_Parser extends PEAR
* @param integer $ecode the error message code
* @return XML_Parser_Error
**/
- function raiseError($msg = null, $ecode = 0)
+ function raiseError($msg = null, $ecode = 0,$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);
@@ -606,7 +590,7 @@ class XML_Parser extends PEAR
*
* @abstract
*/
- function startHandler($xp, $elem, &$attribs)
+ function startHandler($xp, $elem, $attribs)
{
return NULL;
}