From: Marcus Boerger Date: Thu, 13 Oct 2005 19:49:59 +0000 (+0000) Subject: - MFH SPL example was changed, so change PDO test accordingly X-Git-Tag: php-5.1.0RC2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=001f5065331e5a7f0cea545d8b63ae4da83e6e66;p=php - MFH SPL example was changed, so change PDO test accordingly --- diff --git a/ext/pdo/tests/pdo_031.phpt b/ext/pdo/tests/pdo_031.phpt index 3baaf03217..30a75d79b4 100755 --- a/ext/pdo/tests/pdo_031.phpt +++ b/ext/pdo/tests/pdo_031.phpt @@ -38,7 +38,7 @@ echo "===QUERY===\n"; $stmt = $db->query('SELECT * FROM test'); -foreach(new RecursiveTreeIterator(new RecursiveArrayIterator($stmt->fetchAll(PDO::FETCH_ASSOC)), RecursiveIteratorIterator::SELF_FIRST) as $c=>$v) +foreach(new RecursiveTreeIterator(new RecursiveArrayIterator($stmt->fetchAll(PDO::FETCH_ASSOC)), RecursiveTreeIterator::BYPASS_KEY) as $c=>$v) { echo "$v [$c]\n"; }