summaryrefslogtreecommitdiff
path: root/ext/spl/examples/directorytree.php
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-12-08 08:28:18 +0000
committerMarcus Boerger <helly@php.net>2003-12-08 08:28:18 +0000
commit3aa3f744f1883a2478ada7ace510312bfa61afbe (patch)
tree3258d87f0f429f22b49d1c39f0e226f48b1b799b /ext/spl/examples/directorytree.php
parent1a898490aeba8028b871ef61dcfda87bed52cf3b (diff)
downloadphp-git-3aa3f744f1883a2478ada7ace510312bfa61afbe.tar.gz
Update examples to new parameter handling
Diffstat (limited to 'ext/spl/examples/directorytree.php')
-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 ff644f6602..c8df48db98 100755
--- a/ext/spl/examples/directorytree.php
+++ b/ext/spl/examples/directorytree.php
@@ -22,7 +22,7 @@ EOF;
exit(1);
}
-$length = $argc > 3 ? $argv[3] : NULL;
+$length = $argc > 3 ? $argv[3] : -1;
foreach(new LimitIterator(new DirectoryTreeIterator($argv[1]), @$argv[2], $length) as $file) {
//foreach(new DirectoryTreeIterator($argv[1]) as $file) {