From:             clynx at succont dot de
Operating system: FreeBSD 4.11
PHP version:      5CVS-2005-02-20 (dev)
PHP Bug Type:     DOM XML related
Bug description:  Quotes are Replaced

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>

-- 
Edit bug report at http://bugs.php.net/?id=32039&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32039&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32039&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32039&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32039&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32039&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32039&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32039&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32039&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32039&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32039&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32039&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32039&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32039&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32039&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32039&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32039&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32039&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32039&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32039&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32039&r=mysqlcfg

Reply via email to