]> granicus.if.org Git - php/commitdiff
- Fixed Bug #39090 DirectoryFilterDots doxygen docs and example is wrong
authorMarcus Boerger <helly@php.net>
Tue, 31 Oct 2006 23:28:30 +0000 (23:28 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 31 Oct 2006 23:28:30 +0000 (23:28 +0000)
ext/spl/examples/directoryfilterdots.inc

index cdd8434a268475a851391a84213ae59808db6e2e..26896e7cd522871bc1061f1680f4f6bffb4edcf8 100755 (executable)
@@ -12,7 +12,7 @@
 /** @ingroup Examples
  * @brief   A filtered DirectoryIterator
  * @author  Marcus Boerger
- * @version 1.1
+ * @version 1.2
  *
  * This Iteraotr takes a pathname from which it creates a DirectoryIterator
  * and makes it recursive. Further more it filters the entries '.' and '..'.
@@ -24,7 +24,7 @@ class DirectoryFilterDots extends RecursiveFilterIterator
         */
        function __construct($path)
        {
-               parent::__construct(new DirectoryIterator($path));
+               parent::__construct(new RecursiveDirectoryIterator($path));
        }
 
        /** @return whether the current entry is neither '.' nor '..'