[php-pear-File-Find] missing patch

Remi Collet remi at fedoraproject.org
Fri Jul 27 07:45:46 UTC 2012


commit 99ded68f2d230415f3717e489bf0b0ba0652e94b
Author: remi <fedora at famillecollet.com>
Date:   Fri Jul 27 09:45:33 2012 +0200

    missing patch

 File_Find.patch |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/File_Find.patch b/File_Find.patch
new file mode 100644
index 0000000..988f2e8
--- /dev/null
+++ b/File_Find.patch
@@ -0,0 +1,24 @@
+--- File/Find.php.orig	2012-07-27 09:11:08.920852970 +0200
++++ File/Find.php	2012-07-27 09:19:12.855061437 +0200
+@@ -205,13 +205,15 @@
+         sort($retval);
+ 
+         while (list($key, $val) = each($retval)) {
+-            $path = $directory . "/" . $val;
+       
+-            if (!is_array($val) && is_dir($path)) {
+-                unset($retval[$key]);
+-                if ($maxrecursion == 0 || $count < $maxrecursion) {
+-                    $retval[$val] = &File_Find::mapTreeMultiple($path, 
+-                                    $maxrecursion, $count);
++            if (!is_array($val)) {
++                $path = $directory . "/" . $val;
++                if (is_dir($path)) {
++                    unset($retval[$key]);
++                    if ($maxrecursion == 0 || $count < $maxrecursion) {
++                        $retval[$val] = &File_Find::mapTreeMultiple($path, 
++                                        $maxrecursion, $count);
++                    }
+                 }
+             }
+         }


More information about the scm-commits mailing list