]> granicus.if.org Git - php/commitdiff
__toString() must be called explicitly now
authorMarcus Boerger <helly@php.net>
Thu, 4 Dec 2003 20:24:06 +0000 (20:24 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 4 Dec 2003 20:24:06 +0000 (20:24 +0000)
ext/spl/examples/directorytreeiterator.inc

index b247e707010c4f47f9d8a680917b9d52827f9de8..6465f51253dfad601b6754c4dd77de7874e2efa1 100644 (file)
@@ -14,7 +14,7 @@ class DirectoryTreeIterator extends RecursiveIteratorIterator
                        $tree .= $this->getSubIterator($l)->hasNext() ? '| ' : '  ';
                }
                return $tree . ($this->getSubIterator($l)->hasNext() ? '|-' : '\-') 
-                      . $this->getSubIterator($l);
+                      . $this->getSubIterator($l)->__toString();
        }
        
        function __call($func, $params)