diff --git a/ext/spl/examples/directorytree.php b/ext/spl/examples/directorytree.php index c8df48db984..de6cdc76b2f 100755 --- a/ext/spl/examples/directorytree.php +++ b/ext/spl/examples/directorytree.php @@ -24,9 +24,10 @@ 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 DirectoryTreeIterator($argv[1]) as $file) { - echo $file ."\n"; + echo $file . "\n"; } ?> \ No newline at end of file diff --git a/ext/spl/examples/tree.php b/ext/spl/examples/tree.php index 0ade2dd3ec7..9a61acf942a 100755 --- a/ext/spl/examples/tree.php +++ b/ext/spl/examples/tree.php @@ -26,6 +26,7 @@ EOF; exit(1); } +echo $argv[1]."\n"; foreach(new DirectoryGraphIterator($argv[1]) as $file) { echo $file . "\n"; }