|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10936 DOMXML crash with CDATA
Submitted: 2001-05-17 13:21 UTC Modified: 2002-06-03 18:19 UTC
From: matthew dot kane at bigfoot dot com Assigned:
Status: Closed Package: DOM XML related
PHP Version: 4.0.5 OS: Win2K Pro
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.
Block user comment
Status: Assign to:
Bug Type:
From: matthew dot kane at bigfoot dot com
New email:
PHP Version: OS:


 [2001-05-17 13:21 UTC] matthew dot kane at bigfoot dot com
I am running the latest Win32 binaries from the download page. I am using the ISAPI module on IIS5. In php.ini I enabled DOMXML by uncommenting the appropriate line.

Calling the children function on a node that has a CDATA node as a child results in an access violation. Here's a script that reproduces the problem:

$doc = xmldocfile('');
$root = $doc->root();
$children = $root->children();
$children = $children[1]->children();

I would have generated a gdb backtrace if the instructions for doing so explained how to do it with the ISAPI module.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-17 17:59 UTC]
domxml has changed from children being a method to being a member. Try $children = $root->children
 [2001-05-17 18:31 UTC] matthew dot kane at bigfoot dot com
Not in the binaries in

The children property returns NULL in all cases. The children method works correctly unless one of the children is a CDATA node.

The source code in shows children as a method and not as a property.
 [2001-11-21 19:39 UTC]
Does this problem still exists with 4.0.6 from

 [2001-11-30 20:51 UTC]
Update: Fix is coming, assigned to me.
 [2001-12-01 14:46 UTC]
Should be fixed in CVS. Closing.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Jun 07 13:03:43 2023 UTC