cvs: pecl /spl/examples directorytree.php
| From: | Marcus Boerger | Date: | Mon, 08 Dec 2003 08:28:18 +0000 |
| Subject: | cvs: pecl /spl/examples directorytree.php | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-562@lists.php.net to get a copy of this message | ||
helly Mon Dec 8 03:28:18 2003 EDT
Modified files:
/pecl/spl/examples directorytree.php
Log:
Update examples to new parameter handling
Index: pecl/spl/examples/directorytree.php
diff -u pecl/spl/examples/directorytree.php:1.6 pecl/spl/examples/directorytree.php:1.7
--- pecl/spl/examples/directorytree.php:1.6 Sat Dec 6 14:03:17 2003
+++ pecl/spl/examples/directorytree.php Mon Dec 8 03:28:18 2003
@@ -22,7 +22,7 @@
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) {