#27232 [Opn->Fbk]: comment nodes are being skipped
| From: | sniper@php.net | Date: | Fri, 13 Feb 2004 14:58:27 +0000 |
| Subject: | #27232 [Opn->Fbk]: comment nodes are being skipped | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-54861@lists.php.net to get a copy of this message | ||
ID: 27232
Updated by: sniper@php.net
Reported By: lalo at teligens dot com
-Status: Open
+Status: Feedback
Bug Type: DOM XML related
Operating System: Windows XP
PHP Version: 4.3.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2004-02-13 02:52:42] lalo at teligens dot com
Forgot to mention that I'm running the same code under gentoo with PHP
4.3.4 and it does work as expected there.
------------------------------------------------------------------------
[2004-02-13 02:36:22] lalo at teligens dot com
This happens when running horde on Windows. The XML is the
configuration xml. I'm using horde from CVS so you can get a copy of
the same file I'm running here:
http://cvsweb.horde.org/cvs.php/horde/config/conf.xml
------------------------------------------------------------------------
[2004-02-12 20:48:41] iliaa@php.net
Please supply the xml file.
------------------------------------------------------------------------
[2004-02-12 18:57:08] lalo at teligens dot com
Description:
------------
Comments nodes are being skipped.
Reproduce code:
---------------
$doc = domxml_open_file($path . '/conf.xml');
// first node should be a comment, but it's not
$node = $doc->first_child();
Expected result:
----------------
the type of the first node should be XML_COMMENT_NODE
Actual result:
--------------
The type of the first node is a node.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27232&edit=1