Skip to content

Commit

Permalink
Merge branch 'PHP-8.4'
Browse files Browse the repository at this point in the history
* PHP-8.4:
  Fix i386 release build warning
  • Loading branch information
iluuu1994 committed Nov 14, 2024
2 parents 9ca19e9 + ec3de14 commit f0b4847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/getopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char
arg_start = 2;

/* Check for <arg>=<val> */
if ((pos = php_memnstr(&argv[*optind][arg_start], "=", 1, argv[*optind]+arg_end)) != NULL) {
if ((pos = memchr(&argv[*optind][arg_start], '=', arg_end - arg_start)) != NULL) {
arg_end = pos-&argv[*optind][arg_start];
arg_start++;
} else {
Expand Down

0 comments on commit f0b4847

Please sign in to comment.