ID:               26723
 Updated by:       [EMAIL PROTECTED]
 Reported By:      stein at lakenet dot no
-Status:           Open
+Status:           Closed
 Bug Type:         *General Issues
 Operating System: Any
 PHP Version:      5CVS-2003-12-26 (dev)
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2003-12-26 17:47:25] stein at lakenet dot no

Description:
------------
When appending a node from an imported node
(it does not seem to be a factor that the node
 is imported) the namespace of the element is
changed (incorrectly)

This problem exists with 5b3 (missing menu-option)

Leaving out lines ~ 1103 - 1112 in ext/dom/node.c solves the problem
with the following example, but i guess that its not the permanent
solution ;) 




Reproduce code:
---------------
# tar czvf appendChild_bug.tgz appendChild_bug/
appendChild_bug/
appendChild_bug/doc.xml
appendChild_bug/impdoc.xml
appendChild_bug/bug.php

http://eks.lakenet.no/2003/appendChild_bug.tgz

(898 bytes)


Expected result:
----------------
<?xml version="1.0"?>
<rootElt xmlns:x="http://ns.null.no/x";>
 <nonamespacenode/>
 <x:namespacenode/>
 <!-- append after here -->
<impDoc>
 <!-- impdoc is not in any namespace -->
 <nonamespacenode/>
 <x:namespacenode/>
<impDoc></rootElt>



Actual result:
--------------
<?xml version="1.0"?>
<rootElt xmlns:x="http://ns.null.no/x";>
 <nonamespacenode/>
 <x:namespacenode/>
 <!-- append after here -->
<x:impDoc>
 <!-- impdoc is not in any namespace -->
 <nonamespacenode/>
 <x:namespacenode/>
</x:impDoc></rootElt>




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=26723&edit=1

Reply via email to