felipe          Tue Jan 20 00:40:17 2009 UTC

  Modified files:              
    /php-src/ext/spl    spl_iterators.c 
  Log:
  - Added missing "return;"
  
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/spl_iterators.c?r1=1.185&r2=1.186&diff_format=u
Index: php-src/ext/spl/spl_iterators.c
diff -u php-src/ext/spl/spl_iterators.c:1.185 
php-src/ext/spl/spl_iterators.c:1.186
--- php-src/ext/spl/spl_iterators.c:1.185       Wed Dec 31 11:12:36 2008
+++ php-src/ext/spl/spl_iterators.c     Tue Jan 20 00:40:16 2009
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: spl_iterators.c,v 1.185 2008/12/31 11:12:36 sebastian Exp $ */
+/* $Id: spl_iterators.c,v 1.186 2009/01/20 00:40:16 felipe Exp $ */
 
 #ifdef HAVE_CONFIG_H
 # include "config.h"
@@ -2434,6 +2434,7 @@
 
        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) {



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to