Bug #10936 Updated: DOMXML crash with CDATA

From: Date: Thu, 22 Nov 2001 00:39:01 +0000
Subject: Bug #10936 Updated: DOMXML crash with CDATA
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-71339@lists.php.net to get a copy of this message
ID: 10936 Updated by: mfischer Reported By: matthew.kane@bigfoot.com Old Status: Open Status: Feedback Bug Type: DOM XML related Operating System: Win2K Pro PHP Version: 4.0.5 New Comment: Does this problem still exists with 4.0.6 from php.net? Feedback. Previous Comments: ------------------------------------------------------------------------ [2001-05-17 18:31:59] matthew.kane@bigfoot.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-05-17 17:59:27] lyric@php.net domxml has changed from children being a method to being a member. Try $children = $root->children ------------------------------------------------------------------------ [2001-05-17 13:21:56] matthew.kane@bigfoot.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. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=10936&edit=1

« previous php.dev (#71339) next »