]> granicus.if.org Git - php/commitdiff
Update examples to new parameter handling
authorMarcus Boerger <helly@php.net>
Mon, 8 Dec 2003 08:28:18 +0000 (08:28 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 8 Dec 2003 08:28:18 +0000 (08:28 +0000)
ext/spl/examples/directorytree.php

index ff644f66021fd494032a7383f502983b654ebb8e..c8df48db984c78ceab416df2ba10718972d92f4d 100755 (executable)
@@ -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) {