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->doent_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 [url]http://bugs.php.net/?id=26202&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=26202&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=26202&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=26202&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=26202&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=26202&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=26202&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=26202&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=26202&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=26202&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=26202&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=26202&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=26202&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=26202&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=26202&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=26202&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=26202&r=float[/url]