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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
23 + 45 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Mar 28 19:01:29 2024 UTC