-
Notifications
You must be signed in to change notification settings - Fork 8k
zend_builtin_functions.c: Various minor refactorings #20411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| RETURN_STRING(resource_type); | ||
| } else { | ||
| RETURN_STRING("Unknown"); | ||
| RETURN_STR(ZSTR_KNOWN(ZEND_STR_UNKNOWN_CAPITALIZED)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could even use RETURN_INTERNED_STR
| _zend_hash_append_ex(stack_frame, ZSTR_KNOWN(ZEND_STR_FUNCTION), &tmp, 1); | ||
| /* Steal file and line from the previous frame. */ | ||
| if (call->func && ZEND_USER_CODE(call->func->common.type)) { | ||
| uint32_t lineno; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're shadowing here, you don't need this declaration
| zend_hash_real_init_mixed(stack_frame); | ||
|
|
||
| if (prev && prev->func && ZEND_USER_CODE(prev->func->common.type)) { | ||
| uint32_t lineno; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're shadowing here, you don't need this declaration
Commits should be reviewed individually.