From:             [EMAIL PROTECTED]
Operating system: Windows 2000 Server
PHP version:      4.1.2
PHP Bug Type:     DOM XML related
Bug description:  new_child not working properly

Description of bug:
Placing amperstand '&' in 'content' parameter of 'new_child' method
produce trim of content at '&' position.

How to reproduce bug:

<?
$doc = new_xmldoc("1.0");
$root = $doc->add_root('root');
$chld = $root->new_child('element','element&value');
$chld->set_attribute('attr','attribute&value');
echo $doc->dumpmem();
?>

Output will be:

<?xml version="1.0"?>
<root>
  <element attr="attribute&amp;value">element</element>
</root>

Element has only 'element' value instead of 'element&amp;value'
-- 
Edit bug report at http://bugs.php.net/?id=16420&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16420&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16420&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16420&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16420&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16420&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16420&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16420&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16420&r=submittedtwice

Reply via email to