Bug #69753 [Sus]: libXMLError::file contains invalid URI
| From: | cmb@php.net | Date: | Mon, 08 Jun 2015 11:28:11 +0000 |
| Subject: | Bug #69753 [Sus]: libXMLError::file contains invalid URI | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-193193@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69753&edit=1
ID: 69753
Updated by: cmb@php.net
Reported by: cmb@php.net
Summary: libXMLError::file contains invalid URI
Status: Suspended
Type: Bug
Package: XML related
Operating System: Windows
PHP Version: 5.6.9
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
To not forget about it: there is a workaround for the related
issue when such broken file:/ URIs are used for PHP stream
wrappers[1], which should be removed when the bug has been
resolved upstream.
[1] <https://github.com/php/php-src/pull/1320#issuecomment-109894179>
Previous Comments:
------------------------------------------------------------------------
[2015-06-03 20:40:20] cmb@php.net
I've found that the issue is caused by a regression in libxml2,
and filed a respective ticket:
<https://bugzilla.gnome.org/show_bug.cgi?id=750365>.
I'm changing the status of this ticket to "suspended", until the
issue has been resolved upstream.
------------------------------------------------------------------------
[2015-06-03 13:47:52] cmb@php.net
Description:
------------
On Windows the file property of libXMLError objects contains file:
URIs. These are invalid for current versions of PHP (tested 5.6.9)
with current versions of libxml2 (tested 2.9.2). It worked as
expected with PHP 5.4.19 and libxml2 2.7.8.
This bug affects, for instance, the configure script of the PHP
documentation.
I don't know if that's an issue with libxml2 or PHP's wrapper.
Test script:
---------------
<?php
libxml_use_internal_errors(true);
$doc = new DomDocument();
// the file xml-error.xml is supposed to have at least one error
$doc->load('xml-error.xml');
$errors = libxml_get_errors();
var_dump($errors[0]->file);
?>
Expected result:
----------------
string(43) "file:///C:/Users/cmb/php/bugs/xml-error.xml"
Actual result:
--------------
string(41) "file:/C:/Users/cmb/php/bugs/xml-error.xml"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69753&edit=1