]> granicus.if.org Git - php/commitdiff
Forgot to remove unused codes
authorXinchen Hui <laruence@gmail.com>
Fri, 7 Mar 2014 09:41:02 +0000 (17:41 +0800)
committerXinchen Hui <laruence@gmail.com>
Fri, 7 Mar 2014 09:41:02 +0000 (17:41 +0800)
Zend/zend_API.c

index 720815d4370252c3fa2e117af5ceac320975db87..c0f7d533b1ed010728c9e09211695aa1c0069a90 100644 (file)
@@ -3155,13 +3155,7 @@ ZEND_API zend_bool zend_is_callable_ex(zval *callable, zval *object_ptr, uint ch
 
                                if (zend_hash_num_elements(Z_ARRVAL_P(callable)) == 2) {
                                        obj = zend_hash_index_find(Z_ARRVAL_P(callable), 0);
-                                       if (Z_TYPE_P(obj) == IS_REFERENCE) {
-                                               obj = Z_REFVAL_P(obj);
-                                       }
                                        method = zend_hash_index_find(Z_ARRVAL_P(callable), 1);
-                                       if (Z_TYPE_P(method) == IS_REFERENCE) {
-                                               method = Z_REFVAL_P(method);
-                                       }
                                }
 
                                do {