Commit:    a73a6be76417571e7e4a467e8d9c7f82e8a45a9c
Author:    Xinchen Hui <larue...@php.net>         Fri, 14 Dec 2012 17:26:42 
+0800
Parents:   9fb5cfdeb1f13f2e3ab3751494cdd366bc78cb38
Branches:  PHP-5.5

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=a73a6be76417571e7e4a467e8d9c7f82e8a45a9c

Log:
Fix warning of no return in non-void function

Changed paths:
  M  Zend/zend_generators.c


Diff:
diff --git a/Zend/zend_generators.c b/Zend/zend_generators.c
index 2ee2fb9..9eae2c7 100644
--- a/Zend/zend_generators.c
+++ b/Zend/zend_generators.c
@@ -731,6 +731,7 @@ static int 
zend_generator_iterator_get_key(zend_object_iterator *iterator, char
        /* Waiting for Etienne's patch to allow arbitrary zval keys. Until then
         * error out on non-int and non-string keys. */
        zend_error_noreturn(E_ERROR, "Currently only int and string keys can be 
yielded");
+       return HASH_KEY_NON_EXISTANT; /* Nerver reached */
 }
 /* }}} */


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

Reply via email to