#26202 [NEW]: DomNode->set_content() method does not work propertly

From: Date: Tue, 11 Nov 2003 14:31:03 +0000
Subject: #26202 [NEW]: DomNode->set_content() method does not work propertly
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-50226@lists.php.net to get a copy of this message
From: michael_makarov at hotmail dot com Operating system: Windows XP Professional SP1 PHP version: 4.3.4 PHP Bug Type: DOM XML related Bug description: DomNode->set_content() method does not work propertly Description: ------------ set_content() method does not replace node content now it`s look like new content = old content + function argument this is not: Bug #19247 Bug #23710 Reproduce code: --------------- <? $dom = domxml_open_mem("<?xml version=\"1.0\" encoding=\"UTF-8\"?><Test>String1</Test>"); $node = $dom->document_element(); $node->set_content("String2"); echo $dom->dump_mem(); ?> Expected result: ---------------- <?xml version=\"1.0\" encoding=\"UTF-8\"?><Test>String2</Test> Actual result: -------------- <?xml version=\"1.0\" encoding=\"UTF-8\"?><Test>String1String2</Test> -- Edit bug report at http://bugs.php.net/?id=26202&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26202&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26202&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26202&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26202&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26202&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=26202&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26202&r=support Expected behavior: http://bugs.php.net/fix.php?id=26202&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26202&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26202&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26202&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26202&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26202&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26202&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26202&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26202&r=float

« previous php.bugs (#50226) next »