diff options
| author | Mark A. Hershberger <mah@debian.(none)> | 2009-03-25 00:35:13 -0400 |
|---|---|---|
| committer | Mark A. Hershberger <mah@debian.(none)> | 2009-03-25 00:35:13 -0400 |
| commit | 0a36161e13484a99ccf69bb38f206462d27cc6d6 (patch) | |
| tree | d5107db4b7369603ac7c753829e8972ee74949f7 /ext/spl/examples/nocvsdir.php | |
| parent | ce7edc9b3c7370f32fec0bc7a8ec3e29ed9a5f61 (diff) | |
| download | php-upstream/5.1.2.tar.gz | |
Imported Upstream version 5.1.2upstream/5.1.2
Diffstat (limited to 'ext/spl/examples/nocvsdir.php')
| -rwxr-xr-x | ext/spl/examples/nocvsdir.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/spl/examples/nocvsdir.php b/ext/spl/examples/nocvsdir.php index 121731416..e14ad74f4 100755 --- a/ext/spl/examples/nocvsdir.php +++ b/ext/spl/examples/nocvsdir.php @@ -4,7 +4,8 @@ * @brief Program Dir without CVS subdirs
* @ingroup Examples
* @author Marcus Boerger
- * @date 2003 - 2005
+ * @date 2003 - 2006
+ * @version 1.1
*
* Usage: php nocvsdir.php \<path\>
*
@@ -37,10 +38,10 @@ class NoCvsDirectory extends RecursiveFilterIterator {
return $this->getInnerIterator()->getFilename() != 'CVS';
}
-
+
function getChildren()
{
- return new NoCvsDirectory($this->current()->getPathName());
+ return new NoCvsDirectory($this->key());
}
}
|
