php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27232 comment nodes are being skipped
Submitted: 2004-02-12 18:57 UTC Modified: 2004-02-16 15:19 UTC
From: lalo at teligens dot com Assigned:
Status: Closed Package: DOM XML related
PHP Version: 4.3.4 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lalo at teligens dot com
New email:
PHP Version: OS:

 

 [2004-02-12 18:57 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-12 20:48 UTC] iliaa@php.net
Please supply the xml file. 
 [2004-02-13 02:36 UTC] 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-15 03:18 UTC] lalo at teligens dot com
Just to be clear, the latest snapshot is 4.3.5cvs, right ? Your comment when closing the bug confused me. You seem to think that it works for me on v4.3.4 when it doesn't, unless the latest stable that I downloaded *is* v4.3.4 (but phpinfo() says otherwise).
 [2004-02-15 08:56 UTC] sniper@php.net
This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.


 [2004-02-16 15:19 UTC] lalo at teligens dot com
Since what version was this broken ? Just v4.3.4 ?

Thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 13:01:30 2024 UTC