diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2015-06-03 23:14:23 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-06-08 09:40:04 +0200 |
commit | 5fed10e109d3dd42cc42e8d21ddc6a3c2c9c4ef7 (patch) | |
tree | a6ab3265ac8ebb7c3cf090268859e957dbcb8a16 | |
parent | 11ece75291e94dff763f505ba0d6555537d979b9 (diff) | |
download | php-git-5fed10e109d3dd42cc42e8d21ddc6a3c2c9c4ef7.tar.gz |
added XFAIL test for bug #69753
-rw-r--r-- | ext/libxml/tests/bug69753.phpt | 18 | ||||
-rw-r--r-- | ext/libxml/tests/bug69753.xml | 4 |
2 files changed, 22 insertions, 0 deletions
diff --git a/ext/libxml/tests/bug69753.phpt b/ext/libxml/tests/bug69753.phpt new file mode 100644 index 0000000000..693e0247a2 --- /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 0000000000..63b18d5c6d --- /dev/null +++ b/ext/libxml/tests/bug69753.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> +<root> + <sub> +</root> |