From: Marcus Boerger Date: Thu, 4 Dec 2003 20:24:06 +0000 (+0000) Subject: __toString() must be called explicitly now X-Git-Tag: php-5.0.0b3RC1~315 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc6f2119671d58b6e61b6a992aa69054ed61feb7;p=php __toString() must be called explicitly now --- diff --git a/ext/spl/examples/directorytreeiterator.inc b/ext/spl/examples/directorytreeiterator.inc index b247e70701..6465f51253 100644 --- a/ext/spl/examples/directorytreeiterator.inc +++ b/ext/spl/examples/directorytreeiterator.inc @@ -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)