chregu Fri Dec 5 09:52:52 2003 EDT Modified files: /php-src/ext/dom/tests dom_test.inc Log: fix test Index: php-src/ext/dom/tests/dom_test.inc diff -u php-src/ext/dom/tests/dom_test.inc:1.2 php-src/ext/dom/tests/dom_test.inc:1.3 --- php-src/ext/dom/tests/dom_test.inc:1.2 Sat Nov 29 15:40:18 2003 +++ php-src/ext/dom/tests/dom_test.inc Fri Dec 5 09:52:51 2003 @@ -24,7 +24,11 @@ { print "Node Name: " . $node->nodeName; print "\nNode Type: " . $node->nodeType; - $child_count = $node->childNodes->length; + if ($node->nodeType != 3) { + $child_count = $node->childNodes->length; + } else { + $child_count = 0; + } print "\nNum Children: " . $child_count; if($child_count <= 1){ print "\nNode Content: " . $node->nodeValue;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php