--TEST-- Bug #68128 - RecursiveRegexIterator raises "Array to string conversion" notice --FILE-- $value1) { if ($rRegexIterator->hasChildren()) { // print all children echo "Children: "; foreach ($rRegexIterator->getChildren() as $key => $value) { print_r($value); } echo "\n"; } else { echo "No children "; print_r($value1); echo "\n"; } } ?> --EXPECT-- No children Array ( [0] => Array ( [0] => test1 ) [1] => Array ( [0] => t ) [2] => Array ( [0] => 1 ) ) Children: Array ( [0] => Array ( [0] => test4 ) [1] => Array ( [0] => t ) [2] => Array ( [0] => 4 ) ) Array ( [0] => Array ( [0] => test5 ) [1] => Array ( [0] => t ) [2] => Array ( [0] => 5 ) )