]> granicus.if.org Git - php/commitdiff
- Added missing "return;"
authorFelipe Pena <felipe@php.net>
Tue, 20 Jan 2009 00:40:16 +0000 (00:40 +0000)
committerFelipe Pena <felipe@php.net>
Tue, 20 Jan 2009 00:40:16 +0000 (00:40 +0000)
ext/spl/spl_iterators.c

index bff7b74198c3f9493cc6e08a14f737ebf660d8af..7778a493d6e853316a10054f63438c1611551540 100755 (executable)
@@ -2434,6 +2434,7 @@ SPL_METHOD(CachingIterator, __toString)
 
        if (!(intern->u.caching.flags & (CIT_CALL_TOSTRING|CIT_TOSTRING_USE_KEY|CIT_TOSTRING_USE_CURRENT|CIT_TOSTRING_USE_INNER)))      {
                zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "%v does not fetch string value (see CachingIterator::__construct)", Z_OBJCE_P(getThis())->name);
+               return;
        }
        if (intern->u.caching.flags & CIT_TOSTRING_USE_KEY) {
                if (intern->current.key_type == HASH_KEY_IS_STRING) {