--- embedaddon/php/ext/spl/tests/bug54971.phpt 2012/02/21 23:48:01 1.1.1.1 +++ embedaddon/php/ext/spl/tests/bug54971.phpt 2012/05/29 12:34:43 1.1.1.2 @@ -21,29 +21,17 @@ $doc->loadXML($source); $xpath = new DOMXPath($doc); $items = $xpath->query('//node'); -print_r(iterator_to_array($items, false)); -print_r(iterator_to_array($items, true)); +print_r(array_map('get_class', iterator_to_array($items, false))); +print_r(array_map('get_class', iterator_to_array($items, true))); ?> --EXPECT-- Array ( - [0] => DOMElement Object - ( - ) - - [1] => DOMElement Object - ( - ) - + [0] => DOMElement + [1] => DOMElement ) Array ( - [0] => DOMElement Object - ( - ) - - [1] => DOMElement Object - ( - ) - + [0] => DOMElement + [1] => DOMElement )