10000 Use the same zend_arg_info struct for internal and user functions by arnaud-lb · Pull Request #19022 · php/php-src · GitHub
[go: up one dir, main page]

Skip to content

Use the same zend_arg_info struct for internal and user functions #19022

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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unnecessary memcpy
  • Loading branch information
arnaud-lb committed Jul 3, 2025
commit a42cfc98924f59e41d50a03f123afdab6db7991e
1 change: 0 additions & 1 deletion Zend/zend_API.c
Original file line number Diff line number Diff line change
Expand Up @@ -3215,7 +3215,6 @@ ZEND_API zend_result zend_register_functions(zend_class_entry *scope, const zend
/* Treat return type as an extra argument */
num_args++;
new_arg_info = malloc(sizeof(zend_arg_info) * num_args);
memcpy(new_arg_info, arg_info, sizeof(zend_arg_info) * num_args);
reg_function->arg_info = new_arg_info + 1;
for (i = 0; i < num_args; i++) {
zend_convert_internal_arg_info(&new_arg_info[i], &arg_info[i], i == 0);
Expand Down
0