From: Marcus Boerger Date: Mon, 17 Nov 2003 00:56:15 +0000 (+0000) Subject: WS X-Git-Tag: php-5.0.0b3RC1~676 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bfa4972548cba4d5c0508a257bba6a95db5866b;p=php WS --- 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"; }