[Pkg-owncloud-commits] [php-sabre-vobject] 97/341: !xml Enable OPTION_FORGIVING by default.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:38 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabre-vobject.

commit 42c136f8c6f41f4d059827e0662e9b9d9de83792
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Mon Nov 24 18:41:07 2014 +0100

    !xml Enable OPTION_FORGIVING by default.
---
 lib/Parser/XML.php | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/lib/Parser/XML.php b/lib/Parser/XML.php
index d95b0c5..7f66982 100644
--- a/lib/Parser/XML.php
+++ b/lib/Parser/XML.php
@@ -44,6 +44,25 @@ class XML extends Parser {
     protected $root;
 
     /**
+     * Creates the parser.
+     *
+     * Optionally, it's possible to parse the input stream here.
+     *
+     * @param mixed $input
+     * @param int $options Any parser options (OPTION constants).
+     * @return void
+     */
+    public function __construct($input = null, $options = 0) {
+
+        if(0 === $options) {
+            $options = parent::OPTION_FORGIVING;
+        }
+
+        parent::__construct($input, $options);
+
+    }
+
+    /**
      * Parse xCal or xCard.
      *
      * @param resource|string $input

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git



More information about the Pkg-owncloud-commits mailing list