From: Christian Stocker Date: Fri, 5 Dec 2003 14:52:51 +0000 (+0000) Subject: fix test X-Git-Tag: php-5.0.0b3RC1~286 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a016546e4c6659b4283829b6e5f9100687b4e4c5;p=php fix test --- diff --git a/ext/dom/tests/dom_test.inc b/ext/dom/tests/dom_test.inc index 792d6f2dbc..86b426f8f3 100644 --- a/ext/dom/tests/dom_test.inc +++ b/ext/dom/tests/dom_test.inc @@ -24,7 +24,11 @@ function print_node($node) { 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;