mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Fix typo (wrong string length)
This commit is contained in:
commit
e700864055
1 changed files with 2 additions and 2 deletions
|
@ -1952,7 +1952,7 @@ ZEND_API int ZEND_FASTCALL string_compare_function_ex(zval *op1, zval *op2, bool
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (case_insensitive) {
|
if (case_insensitive) {
|
||||||
ret = zend_binary_strcasecmp_l(ZSTR_VAL(str1), ZSTR_LEN(str1), ZSTR_VAL(str2), ZSTR_LEN(str1));
|
ret = zend_binary_strcasecmp_l(ZSTR_VAL(str1), ZSTR_LEN(str1), ZSTR_VAL(str2), ZSTR_LEN(str2));
|
||||||
} else {
|
} else {
|
||||||
ret = zend_binary_strcmp(ZSTR_VAL(str1), ZSTR_LEN(str1), ZSTR_VAL(str2), ZSTR_LEN(str2));
|
ret = zend_binary_strcmp(ZSTR_VAL(str1), ZSTR_LEN(str1), ZSTR_VAL(str2), ZSTR_LEN(str2));
|
||||||
}
|
}
|
||||||
|
@ -1998,7 +1998,7 @@ ZEND_API int ZEND_FASTCALL string_case_compare_function(zval *op1, zval *op2) /*
|
||||||
zend_string *tmp_str1, *tmp_str2;
|
zend_string *tmp_str1, *tmp_str2;
|
||||||
zend_string *str1 = zval_get_tmp_string(op1, &tmp_str1);
|
zend_string *str1 = zval_get_tmp_string(op1, &tmp_str1);
|
||||||
zend_string *str2 = zval_get_tmp_string(op2, &tmp_str2);
|
zend_string *str2 = zval_get_tmp_string(op2, &tmp_str2);
|
||||||
int ret = zend_binary_strcasecmp_l(ZSTR_VAL(str1), ZSTR_LEN(str1), ZSTR_VAL(str2), ZSTR_LEN(str1));
|
int ret = zend_binary_strcasecmp_l(ZSTR_VAL(str1), ZSTR_LEN(str1), ZSTR_VAL(str2), ZSTR_LEN(str2));
|
||||||
|
|
||||||
zend_tmp_string_release(tmp_str1);
|
zend_tmp_string_release(tmp_str1);
|
||||||
zend_tmp_string_release(tmp_str2);
|
zend_tmp_string_release(tmp_str2);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue