diff --git a/ext/dom/tests/dom004.phpt b/ext/dom/tests/dom004.phpt index 457b764abfb6..8656d2becf7b 100644 --- a/ext/dom/tests/dom004.phpt +++ b/ext/dom/tests/dom004.phpt @@ -9,7 +9,7 @@ in_array('compress.zlib', stream_get_wrappers()) or die('skip compress.zlib wrap --FILE-- load("compress.zlib://".__DIR__."/book.xml.gz"); +$dom->load("compress.zlib://" . str_replace("\\", "/", __DIR__) . "/book.xml.gz"); print $dom->saveXML(); ?> --EXPECT-- diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c index a72aad5038de..f07b3214ee82 100644 --- a/ext/libxml/libxml.c +++ b/ext/libxml/libxml.c @@ -423,10 +423,11 @@ static void *php_libxml_streams_IO_open_wrapper(const char *filename, const char (xmlStrncmp(BAD_CAST uri->scheme, BAD_CAST "file", 4) == 0))) { resolved_path = xmlURIUnescapeString(filename, 0, NULL); isescaped = 1; -#if LIBXML_VERSION >= 20902 && defined(PHP_WIN32) +#if LIBXML_VERSION >= 20902 && LIBXML_VERSION < 21300 && defined(PHP_WIN32) /* Libxml 2.9.2 prefixes local paths with file:/ instead of file://, thus the php stream wrapper will fail on a valid case. For this - reason the prefix is rather better cut off. */ + reason the prefix is rather better cut off. + As of libxml 2.13.0 this issue is resolved. */ { size_t pre_len = sizeof("file:/") - 1; diff --git a/ext/libxml/tests/bug69753-mb.phpt b/ext/libxml/tests/bug69753-mb.phpt index e89034db1626..6f358f94bf09 100644 --- a/ext/libxml/tests/bug69753-mb.phpt +++ b/ext/libxml/tests/bug69753-mb.phpt @@ -1,12 +1,11 @@ --TEST-- Bug #69753 - libXMLError::file contains invalid URI ---XFAIL-- -Awaiting upstream fix: https://gitlab.gnome.org/GNOME/libxml2/-/issues/611 --EXTENSIONS-- dom --SKIPIF-- --FILE-- file); ?> --EXPECTF-- -string(%d) "file:///%s/ext/libxml/tests/bug69753.xml" +string(%d) "%s\ext\libxml\tests\bug69753私はガラスを食べられます.xml" diff --git a/ext/libxml/tests/bug69753.phpt b/ext/libxml/tests/bug69753.phpt index bd2a9c0b8258..e9f0c56c2ee0 100644 --- a/ext/libxml/tests/bug69753.phpt +++ b/ext/libxml/tests/bug69753.phpt @@ -1,12 +1,11 @@ --TEST-- Bug #69753 - libXMLError::file contains invalid URI ---XFAIL-- -Awaiting upstream fix: https://gitlab.gnome.org/GNOME/libxml2/-/issues/611 --EXTENSIONS-- dom --SKIPIF-- --FILE-- file); ?> --EXPECTF-- -string(%d) "file:///%s/ext/libxml/tests/bug69753.xml" +string(%d) "%s\ext\libxml\tests\bug69753.xml"