]> granicus.if.org Git - php/commitdiff
- Fixed Bug #39151 Parse error in recursiveiteratoriterator.php
authorMarcus Boerger <helly@php.net>
Tue, 31 Oct 2006 23:22:56 +0000 (23:22 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 31 Oct 2006 23:22:56 +0000 (23:22 +0000)
ext/spl/internal/recursiveiteratoriterator.inc

index 0fd849225dd18b3efc500266a5553a7ec285cdfb..0f7f2aaa9d58938d05fa519cdda9569d21aefea8 100755 (executable)
@@ -233,7 +233,7 @@ class RecursiveIteratorIterator implements OuterIterator
                        if ($after_move)
                        {
                                if (($this->mode == self::SELF_FIRST && $this->callHasChildren())
-                                    $this->mode == self::LEAVES_ONLY)
+                               ||   $this->mode == self::LEAVES_ONLY)
                                $this->nextElement();
                        }
                        else
@@ -245,7 +245,9 @@ class RecursiveIteratorIterator implements OuterIterator
        
        /** Called when the next element is available
         */
-       function nextElement();
+       function nextElement()
+       {
+       }
 
        /** @param max_depth new maximum allowed depth or -1 for any depth
         */