ID: 29386
Updated by: [EMAIL PROTECTED]
Reported By: bugz at nagash dot org
Status: Feedback
Bug Type: DOM XML related
Operating System: windows
PHP Version: 5.0.0
New Comment:
I am unable to reproduce this under W2K and XP (using snaps and debug
builds). Can someone who can reproduce this try var_dumping that vars
after each line as well as doing a saveXML() on the doc each time to
try to pinpoint where the problem lies. libxml version is irrelevant as
I also tried from 2.5.11 - 2.6.11
Previous Comments:
------------------------------------------------------------------------
[2004-07-26 12:33:15] [EMAIL PROTECTED]
I can reproduce it with PHP 5.1.0-dev (cli) (built: Jul 26 2004
08:30:28) under Win2k.
------------------------------------------------------------------------
[2004-07-26 12:23:47] [EMAIL PROTECTED]
Works for me on Linux... Can someone revalidate that on windows?
------------------------------------------------------------------------
[2004-07-26 12:06:59] bugz at nagash dot org
Description:
------------
result is unexpected
Reproduce code:
---------------
$doc = new DOMDocument("1.0");
$root = $doc->createElement("HTML");
$root = $doc->appendChild($root);
$head = $doc->createElement("HEAD");
$head = $root->appendChild($head);
$title = $doc->createElement("TITLE");
$title = $head->appendChild($title);
$text = $doc->createTextNode("This is the title");
$text = $title->appendChild($text);
echo $doc->saveXML();
Expected result:
----------------
<?xml version="1.0"?>
<HTML>
<HEAD>
<TITLE>
This is the title
</TITLE>
</HEAD>
</HTML>
Actual result:
--------------
<?xml version="1.0"?>
<HTML />
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29386&edit=1