diff options
author | Xinchen Hui <laruence@gmail.com> | 2015-12-23 07:52:24 -0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2015-12-23 07:52:24 -0800 |
commit | 9cc4cdbe574112885cb85f6eaf4014616959bfbd (patch) | |
tree | d2de60292a23b6ca10a21bd5c99be965aa2eb8a6 /ext/spl/php_spl.c | |
parent | e21cb2daeabe459db996407df2113bb47a320937 (diff) | |
download | php-git-9cc4cdbe574112885cb85f6eaf4014616959bfbd.tar.gz |
This should never fail
Diffstat (limited to 'ext/spl/php_spl.c')
-rw-r--r-- | ext/spl/php_spl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index b2f59328d2..719a9f3e48 100644 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -425,9 +425,7 @@ PHP_FUNCTION(spl_autoload_call) zend_str_tolower_copy(ZSTR_VAL(lc_name), Z_STRVAL_P(class_name), Z_STRLEN_P(class_name)); zend_hash_internal_pointer_reset_ex(SPL_G(autoload_functions), &pos); while (zend_hash_get_current_key_ex(SPL_G(autoload_functions), &func_name, &num_idx, &pos) == HASH_KEY_IS_STRING) { - if ((alfi = zend_hash_get_current_data_ptr_ex(SPL_G(autoload_functions), &pos)) == NULL) { - continue; - } + alfi = zend_hash_get_current_data_ptr_ex(SPL_G(autoload_functions), &pos); zend_call_method(Z_ISUNDEF(alfi->obj)? NULL : &alfi->obj, alfi->ce, &alfi->func_ptr, ZSTR_VAL(func_name), ZSTR_LEN(func_name), retval, 1, class_name, NULL); zend_exception_save(); if (retval) { |