summaryrefslogtreecommitdiff
path: root/ext/domxml/tests/domxml002.phpt
blob: fa60f15e6d2b129e921e3a199b97cc77b9d8debf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--TEST--
Test 2: Memleak in accessing children() of document.
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
require_once("domxml_test.inc");

$dom = xmldoc($xmlstr);
if(!$dom) {
  die('Error while parsing the document');
}

$children = $dom->children();
print_node_list($children);

?>
--EXPECT--
Node Name: 
Node Type: 14
Num Children: 1
Node Content: 

Node Name: #comment
Node Type: 8
Num Children: 0
Node Content:  lsfj  

Node Name: chapter
Node Type: 1
Num Children: 4