mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
This should never fail
This commit is contained in:
parent
e21cb2daea
commit
9cc4cdbe57
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user