summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-10-07 23:14:49 +0000
committerMarcus Boerger <helly@php.net>2005-10-07 23:14:49 +0000
commitd6af3d268d3ade677a440290c6ddb4362664fc14 (patch)
tree288cfd996f5970cb4466b83e083298b8fc0dc266
parentf70499f83ab0568f3dfcc5f8c5ee1d2a0d447ef1 (diff)
downloadphp-git-d6af3d268d3ade677a440290c6ddb4362664fc14.tar.gz
- Prevent notices from showing up if inner's current() does not return a string
-rwxr-xr-xext/spl/examples/recursivetreeiterator.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/examples/recursivetreeiterator.inc b/ext/spl/examples/recursivetreeiterator.inc
index 62198c8d36..d525bc0782 100755
--- a/ext/spl/examples/recursivetreeiterator.inc
+++ b/ext/spl/examples/recursivetreeiterator.inc
@@ -60,7 +60,7 @@ class RecursiveTreeIterator extends RecursiveIteratorIterator
*/
function getEntry()
{
- return $this->callToString ? $this->__toString() : parent::current();
+ return $this->callToString ? $this->__toString() : @(string)parent::current();
}
/** @return string to place after the current element