Fix i386 release build warning

Closes GH-16730
This commit is contained in:
Ilija Tovilo 2024-11-08 14:50:54 +01:00
parent efe4fc9f99
commit ec3de14afb
No known key found for this signature in database
GPG Key ID: 5050C66BFCD1015A

View File

@ -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 {