ID: 44917
Updated by: [EMAIL PROTECTED]
Reported By: me at mkavel dot de
-Status: Open
+Status: Feedback
Bug Type: SimpleXML related
Operating System: Gentoo
PHP Version: 5.2.6
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
Previous Comments:
------------------------------------------------------------------------
[2008-05-05 14:29:59] me at mkavel dot de
Description:
------------
Some special German (latin1) caracters could not be set correctly.
The code produces different output between addCild and directly set of
the value in an existing child.
Reproduce code:
---------------
// 1
$xml->obermenue[0]->addChild("titel","<![CDATA[Übertrumpfen]]>");
// 2
$xml->obermenue[0]->titel="<![CDATA[Übertrumpfen]]>";
Expected result:
----------------
1:
Output: <titel><![CDATA[Übertrumpfen]]></titel>
2:
Output: <titel><![CDATA[Übertrumpfen]]></titel>
Actual result:
--------------
1:
Output: <titel><![CDATA[Übertrumpfen]]></titel>
Please look at the "<" and "&" in the first Output. It changed to
"<" and the "&" not change.
2:
Output: <titel><![CDATA[&Uuml;bertrumpfen]]></titel>
This one the "<" changed to "<" too but the "&" chnaged to "&"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44917&edit=1