summaryrefslogtreecommitdiff
path: root/ext/spl/examples
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-04-25 11:14:11 +0000
committerMarcus Boerger <helly@php.net>2004-04-25 11:14:11 +0000
commit5b755c40ea640c03006bb5ae79bc8c23b1761753 (patch)
tree1eedbe3e51a5dc24a89183fd9b3752f8bea281bd /ext/spl/examples
parent87a9f7bdbbc7738667ad5c6786a504108a20261c (diff)
downloadphp-git-5b755c40ea640c03006bb5ae79bc8c23b1761753.tar.gz
Fix several issues
- bugfix #27063 - bugfix #27929 - bugfix #28099 - bugfix #28125 # The amount of code is needed to solve the return by reference problem. # dual_it and derived also need their own iterator handlers to be able # to return by reference.
Diffstat (limited to 'ext/spl/examples')
-rwxr-xr-xext/spl/examples/directorytree.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/examples/directorytree.php b/ext/spl/examples/directorytree.php
index de6cdc76b2..53d7ce0f3f 100755
--- a/ext/spl/examples/directorytree.php
+++ b/ext/spl/examples/directorytree.php
@@ -25,7 +25,7 @@ EOF;
$length = $argc > 3 ? $argv[3] : -1;
echo $argv[1]."\n";
-foreach(new LimitIterator(new DirectoryTreeIterator($argv[1]), @$argv[2], $length) as $file) {
+foreach(new LimitIterator(new DirectoryTreeIterator($argv[1]), @$argv[2], $length) as $key=>$file) {
//foreach(new DirectoryTreeIterator($argv[1]) as $file) {
echo $file . "\n";
}