summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-11-17 00:56:15 +0000
committerMarcus Boerger <helly@php.net>2003-11-17 00:56:15 +0000
commit3bfa4972548cba4d5c0508a257bba6a95db5866b (patch)
tree4e654e706aee16fe126dce9c8d1cd159aa41f96c
parent883777623a5d3f684ca525da2a26e081a58acfe7 (diff)
downloadphp-git-3bfa4972548cba4d5c0508a257bba6a95db5866b.tar.gz
WS
-rwxr-xr-xext/spl/examples/directorytree.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/spl/examples/directorytree.php b/ext/spl/examples/directorytree.php
index 744a17a99a..a0cd1d9a0c 100755
--- a/ext/spl/examples/directorytree.php
+++ b/ext/spl/examples/directorytree.php
@@ -10,7 +10,8 @@
*/
$length = $argc > 3 ? $argv[3] : NULL;
-foreach(new LimitIterator(new DirectoryTree($argv[1]), @$argv[2], $length) as $pathname => $file) {
+
+foreach(new RecursiveIteratorIterator(new DirectoryTreeIterator($argv[1])) as $pathname => $file) {
echo "$pathname\n";
}