com php-src: added XFAIL test for bug #69753: ext/libxml/tests/bug69753.phpt ext/libxml/tests/bug69753.xml
| From: | Anatol Belski | Date: | Mon, 08 Jun 2015 07:40:04 +0000 |
| Subject: | com php-src: added XFAIL test for bug #69753: ext/libxml/tests/bug69753.phpt ext/libxml/tests/bug69753.xml | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-87087@lists.php.net to get a copy of this message | ||
Commit: 5fed10e109d3dd42cc42e8d21ddc6a3c2c9c4ef7
Author: Christoph M. Becker <cmbecker69@gmx.de> Wed, 3 Jun 2015 23:14:23 +0200
Committer: Anatol Belski <ab@php.net> Mon, 8 Jun 2015 09:40:04 +0200
Parents: 11ece75291e94dff763f505ba0d6555537d979b9
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5fed10e109d3dd42cc42e8d21ddc6a3c2c9c4ef7
Log:
added XFAIL test for bug #69753
Bugs:
https://bugs.php.net/69753
Changed paths:
A ext/libxml/tests/bug69753.phpt
A ext/libxml/tests/bug69753.xml
Diff:
diff --git a/ext/libxml/tests/bug69753.phpt b/ext/libxml/tests/bug69753.phpt
new file mode 100644
index 0000000..693e024
--- /dev/null
+++ b/ext/libxml/tests/bug69753.phpt
@@ -0,0 +1,18 @@
+--TEST--
+Bug #69753 - libXMLError::file contains invalid URI
+--XFAIL--
+Awaiting upstream fix: https://bugzilla.gnome.org/show_bug.cgi?id=750365
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms
only");
+?>
+--FILE--
+<?php
+libxml_use_internal_errors(true);
+$doc = new DomDocument();
+$doc->load(__DIR__ . '/bug69753.xml');
+$error = libxml_get_last_error();
+var_dump($error->file);
+?>
+--EXPECTF--
+string(%d) "file:///%s/ext/libxml/tests/bug69753.xml"
diff --git a/ext/libxml/tests/bug69753.xml b/ext/libxml/tests/bug69753.xml
new file mode 100644
index 0000000..63b18d5
--- /dev/null
+++ b/ext/libxml/tests/bug69753.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<root>
+ <sub>
+</root>