Skip to content

Commit 3e0ec86

Browse files
committed
Cleanup
1 parent 9031567 commit 3e0ec86

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

Zend/zend_execute.c

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5373,25 +5373,12 @@ static zend_always_inline uint32_t zend_get_arg_offset_by_name(
53735373

53745374
// TODO: Use a hash table?
53755375
uint32_t num_args = fbc->common.num_args;
5376-
if (EXPECTED(fbc->type == ZEND_USER_FUNCTION)
5377-
|| EXPECTED(fbc->common.fn_flags & ZEND_ACC_USER_ARG_INFO)) {
5378-
for (uint32_t i = 0; i < num_args; i++) {
5379-
zend_arg_info *arg_info = &fbc->op_array.arg_info[i];
5380-
if (zend_string_equals(arg_name, arg_info->name)) {
5381-
*cache_slot = fbc;
5382-
*(uintptr_t *)(cache_slot + 1) = i;
5383-
return i;
5384-
}
5385-
}
5386-
} else {
5387-
ZEND_ASSERT(num_args == 0 || fbc->internal_function.arg_info);
5388-
for (uint32_t i = 0; i < num_args; i++) {
5389-
zend_arg_info *arg_info = &fbc->internal_function.arg_info[i];
5390-
if (zend_string_equals(arg_name, arg_info->name)) {
5391-
*cache_slot = fbc;
5392-
*(uintptr_t *)(cache_slot + 1) = i;
5393-
return i;
5394-
}
5376+
for (uint32_t i = 0; i < num_args; i++) {
5377+
zend_arg_info *arg_info = &fbc->op_array.arg_info[i];
5378+
if (zend_string_equals(arg_name, arg_info->name)) {
5379+
*cache_slot = fbc;
5380+
*(uintptr_t *)(cache_slot + 1) = i;
5381+
return i;
53955382
}
53965383
}
53975384

0 commit comments

Comments
 (0)