mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
fixed warning
This commit is contained in:
parent
1095f8a502
commit
beb9723617
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ PHPAPI void php_explode(pval *delim, pval *str, pval *return_value)
|
|||
} else do {
|
||||
add_index_stringl(return_value, i++, p1, p2-p1, 1);
|
||||
p1 = p2 + delim->value.str.len;
|
||||
} while (p2 = php_memnstr(p1, delim->value.str.val, delim->value.str.len, endp));
|
||||
} while ((p2 = php_memnstr(p1, delim->value.str.val, delim->value.str.len, endp)) != NULL);
|
||||
|
||||
if (p1 <= endp) {
|
||||
add_index_stringl(return_value, i++, p1, endp-p1, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue