php.net |  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
Description:
------------
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:
---------------
<?php
$xmlData = <<<XMLCODE
<?xml version="1.0" ?>
<test>"</test>
XMLCODE;

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

Expected result:
----------------
<?xml version="1.0"?>
<test>"</test>

Actual result:
--------------
<?xml version="1.0"?>
<test>&quot;</test>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-20 23:15 UTC] helly@php.net
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 http://www.php.net/support.php 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-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC