diff options
| author | Marcus Boerger <helly@php.net> | 2003-12-08 08:28:18 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2003-12-08 08:28:18 +0000 |
| commit | 3aa3f744f1883a2478ada7ace510312bfa61afbe (patch) | |
| tree | 3258d87f0f429f22b49d1c39f0e226f48b1b799b /ext/spl/examples | |
| parent | 1a898490aeba8028b871ef61dcfda87bed52cf3b (diff) | |
| download | php-git-3aa3f744f1883a2478ada7ace510312bfa61afbe.tar.gz | |
Update examples to new parameter handling
Diffstat (limited to 'ext/spl/examples')
| -rwxr-xr-x | ext/spl/examples/directorytree.php | 2 |
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) { |
