|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32039 Quotes are Replaced
Submitted: 2005-02-20 22:58 UTC Modified: 2005-02-20 23:24 UTC
From: clynx at succont dot de Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: * OS: *
Private report: No CVE-ID: None
 [2005-02-20 22:58 UTC] clynx at succont dot de
When opening a XML File with Doublequotes ("), the Quotes are Replaced with ". 
Opening and Dumping XML Files should not modify Contents.
This seems to be a BSD (maybe Linux) Bug only. 
Windows Snapshot "php5.0-win32-200502181730" seems not to have this Bug.

Reproduce code:
$xmlData = <<<XMLCODE
<?xml version="1.0" ?>

$dom = new DomDocument;
$dom->loadXML( $xmlData );
echo $dom->saveXML();

Expected result:
<?xml version="1.0"?>

Actual result:
<?xml version="1.0"?>


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-20 23:15 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Both are XML wise absolutley identical (not only equal)
 [2005-02-20 23:24 UTC] clynx at succont dot de
Sorry, but why is the Result on Windows not the same as on FreeBSD? Souldn't the Result be the same?
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Nov 25 15:01:23 2020 UTC