Skip to content

Commit 73ce43a

Browse files
committed
Fix i386 release build warning
1 parent 3b609ab commit 73ce43a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ jobs:
169169
uses: ./.github/actions/configure-x32
170170
with:
171171
configurationParameters: >-
172-
--enable-debug
172+
--disable-debug
173173
--enable-zts
174174
- name: make
175175
run: make -j$(/usr/bin/nproc) >/dev/null

main/getopt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char
9797
arg_start = 2;
9898

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

0 commit comments

Comments
 (0)