From: Marcus Boerger Date: Mon, 8 Dec 2003 08:28:18 +0000 (+0000) Subject: Update examples to new parameter handling X-Git-Tag: php-5.0.0b3RC1~190 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3aa3f744f1883a2478ada7ace510312bfa61afbe;p=php Update examples to new parameter handling --- 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) {