php.net |  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
15 + 7 = ?
Subscribe to this entry?

 
 [2001-05-17 13:21 UTC] matthew dot kane at bigfoot dot com
I am running the latest Win32 binaries from the php.net 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('http://tbhbuilding.blogspot.com');
$root = $doc->root();
$children = $root->children();
$children = $children[1]->children();
print_r($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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-17 17:59 UTC] lyric@php.net
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 http://www.php.net/do_download.php?download_file=php-4.0.5-Win32.zip&source_site=www.php.net.

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 http://www.php.net/do_download.php?download_file=php-4.0.5.tar.gz&source_site=www.php.net shows children as a method and not as a property.
 [2001-11-21 19:39 UTC] mfischer@php.net
Does this problem still exists with 4.0.6 from php.net?

Feedback.
 [2001-11-30 20:51 UTC] mfischer@php.net
Update: Fix is coming, assigned to me.
 [2001-12-01 14:46 UTC] mfischer@php.net
Should be fixed in CVS. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 05:01:27 2024 UTC