Bug #69753 [Opn->Sus]: libXMLError::file contains invalid URIs

From: Date: Wed, 03 Jun 2015 20:40:21 +0000
Subject: Bug #69753 [Opn->Sus]: libXMLError::file contains invalid URIs
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193093@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 URIs -Status: Open +Status: Suspended Type: Bug Package: XML related Operating System: Windows PHP Version: 5.6.9 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#193093) next »