| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull Requests
Pull requests: 
 HistoryAllCommentsChangesGit/SVN commits             
             [2015-06-03 20:40 UTC] cmb@php.net
 
-Status:      Open
+Status:      Suspended
-Assigned To:
+Assigned To: cmb
  [2015-06-03 20:40 UTC] cmb@php.net
  [2015-06-03 21:12 UTC] cmb@php.net
 
-Summary: libXMLError::file contains invalid URIs
+Summary: libXMLError::file contains invalid URI
  [2015-06-08 11:28 UTC] cmb@php.net
  [2017-08-16 16:28 UTC] cmb@php.net
 
-Assigned To: cmb
+Assigned To:
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 04:00:01 2025 UTC | 
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"