From afc15ffde9bb8ec06c8a9d32177e58e00d125641 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sat, 13 Dec 2003 14:40:06 +0000 Subject: [PATCH] Show classname --- ext/spl/examples/directorytree.php | 3 ++- ext/spl/examples/tree.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/spl/examples/directorytree.php b/ext/spl/examples/directorytree.php index c8df48db98..de6cdc76b2 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 0ade2dd3ec..9a61acf942 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"; } -- 2.50.1