#19247 [NEW]: set_content does not replace contents

From: Date: Thu, 05 Sep 2002 12:39:50 +0000
Subject: #19247 [NEW]: set_content does not replace contents
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18485@lists.php.net to get a copy of this message
From: dan@exaci.com Operating system: Redhat 7.3 kernel 2.4.18-3 PHP version: 4.2.2 PHP Bug Type: DOM XML related Bug description: set_content does not replace contents As of v4.2.2 of PHP, with libxml version 2.4.19, set_content does not replace the content of the node, but only appends to it. Apache version is 1.3.26 There is no direct function to overwrite the contents of a node, and to do so requires a roundabout way of creating a new node, copying the children and properties, and then setting the content of that node and replace_node'ing it into the DoM. There should be. That, or set_content should have the expected behaviour of replacing the node content (if appending is required, that can be done by using get_content). Thanks in advance, Daniel -- Edit bug report at http://bugs.php.net/?id=19247&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19247&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19247&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19247&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19247&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19247&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19247&r=support Expected behavior: http://bugs.php.net/fix.php?id=19247&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19247&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19247&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19247&r=globals

« previous php.bugs (#18485) next »