Bug #69753 [NEW]: libXMLError::file contains invalid URIs

From: Date: Wed, 03 Jun 2015 13:47:53 +0000
Subject: Bug #69753 [NEW]: libXMLError::file contains invalid URIs
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193091@lists.php.net to get a copy of this message
From:             cmb
Operating system: Windows
PHP version:      5.6.9
Package:          XML related
Bug Type:         Bug
Bug description:libXMLError::file contains invalid URIs

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 bug report at https://bugs.php.net/bug.php?id=69753&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=69753&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=69753&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=69753&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=69753&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=69753&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=69753&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=69753&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=69753&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=69753&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=69753&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=69753&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=69753&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=69753&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69753&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=69753&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=69753&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=69753&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69753&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=69753&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=69753&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#193091) next »