#32711 [NEW]: CDATA elements are not preserved
From: phpspam at talkingspider dot com
Operating system: Fedora C2
PHP version: 4.3.9
PHP Bug Type: DOM XML related
Bug description: CDATA elements are not preserved
Description:
------------
Read in an xml file that has CDDATA elements using domxml_open_file and
then write it out using DomDocument->dump_file. The CDATA elements get
turned into text elements.
Reproduce code:
---------------
//Read in an xml file that has CDDATA elements using //domxml_open_file
and then write it out using //DomDocument->dump_file. The CDATA elements
get turned into text elements.
Expected result:
----------------
There's no justifiable reason why it should convert CDATA elements to text
elements.
Actual result:
--------------
The CDATA elements get turned into text elements.
--
Edit bug report at http://bugs.php.net/?id=32711&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32711&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32711&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32711&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32711&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32711&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32711&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32711&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32711&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32711&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32711&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32711&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32711&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32711&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32711&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32711&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32711&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32711&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32711&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32711&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32711&r=mysqlcfg
Thread (9 messages)
- phpspam at talkingspider dot com