Skip to content

Commit beb9723

Browse files
author
Thies C. Arntzen
committed
fixed warning
1 parent 1095f8a commit beb9723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ PHPAPI void php_explode(pval *delim, pval *str, pval *return_value)
224224
} else do {
225225
add_index_stringl(return_value, i++, p1, p2-p1, 1);
226226
p1 = p2 + delim->value.str.len;
227-
} while (p2 = php_memnstr(p1, delim->value.str.val, delim->value.str.len, endp));
227+
} while ((p2 = php_memnstr(p1, delim->value.str.val, delim->value.str.len, endp)) != NULL);
228228

229229
if (p1 <= endp) {
230230
add_index_stringl(return_value, i++, p1, endp-p1, 1);

0 commit comments

Comments
 (0)