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