mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Remove zend_binary_zval_strcasecmp() APIs
These are thin wrappers ... around the wrong functions. They call the "_l()" version of the underlying APIs. For clarify, just call the wrapped API directly.
This commit is contained in:
parent
605ac4649c
commit
498674058c
3 changed files with 5 additions and 16 deletions
|
@ -10,6 +10,11 @@ PHP 8.2 INTERNALS UPGRADE NOTES
|
||||||
1. Internal API changes
|
1. Internal API changes
|
||||||
========================
|
========================
|
||||||
|
|
||||||
|
* Removed zend_binary_zval_str(n)casecmp() APIs. These were thin wrappers
|
||||||
|
around zend_binary_str(n)casecmp_l() -- rather than
|
||||||
|
zend_binary_str(n)casecmp() as one would expect. Call the appropriate
|
||||||
|
wrapped function directly instead.
|
||||||
|
|
||||||
========================
|
========================
|
||||||
2. Build system changes
|
2. Build system changes
|
||||||
========================
|
========================
|
||||||
|
|
|
@ -79,8 +79,6 @@ static const unsigned char tolower_map[256] = {
|
||||||
* Functions using locale lowercase:
|
* Functions using locale lowercase:
|
||||||
zend_binary_strncasecmp_l
|
zend_binary_strncasecmp_l
|
||||||
zend_binary_strcasecmp_l
|
zend_binary_strcasecmp_l
|
||||||
zend_binary_zval_strcasecmp
|
|
||||||
zend_binary_zval_strncasecmp
|
|
||||||
string_compare_function_ex
|
string_compare_function_ex
|
||||||
string_case_compare_function
|
string_case_compare_function
|
||||||
* Functions using ascii lowercase:
|
* Functions using ascii lowercase:
|
||||||
|
@ -2919,18 +2917,6 @@ ZEND_API int ZEND_FASTCALL zend_binary_zval_strncmp(zval *s1, zval *s2, zval *s3
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
ZEND_API int ZEND_FASTCALL zend_binary_zval_strcasecmp(zval *s1, zval *s2) /* {{{ */
|
|
||||||
{
|
|
||||||
return zend_binary_strcasecmp_l(Z_STRVAL_P(s1), Z_STRLEN_P(s1), Z_STRVAL_P(s2), Z_STRLEN_P(s2));
|
|
||||||
}
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
ZEND_API int ZEND_FASTCALL zend_binary_zval_strncasecmp(zval *s1, zval *s2, zval *s3) /* {{{ */
|
|
||||||
{
|
|
||||||
return zend_binary_strncasecmp_l(Z_STRVAL_P(s1), Z_STRLEN_P(s1), Z_STRVAL_P(s2), Z_STRLEN_P(s2), Z_LVAL_P(s3));
|
|
||||||
}
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
ZEND_API bool ZEND_FASTCALL zendi_smart_streq(zend_string *s1, zend_string *s2) /* {{{ */
|
ZEND_API bool ZEND_FASTCALL zendi_smart_streq(zend_string *s1, zend_string *s2) /* {{{ */
|
||||||
{
|
{
|
||||||
zend_uchar ret1, ret2;
|
zend_uchar ret1, ret2;
|
||||||
|
|
|
@ -443,8 +443,6 @@ ZEND_API zend_string* ZEND_FASTCALL zend_string_tolower_ex(zend_string *str, boo
|
||||||
|
|
||||||
ZEND_API int ZEND_FASTCALL zend_binary_zval_strcmp(zval *s1, zval *s2);
|
ZEND_API int ZEND_FASTCALL zend_binary_zval_strcmp(zval *s1, zval *s2);
|
||||||
ZEND_API int ZEND_FASTCALL zend_binary_zval_strncmp(zval *s1, zval *s2, zval *s3);
|
ZEND_API int ZEND_FASTCALL zend_binary_zval_strncmp(zval *s1, zval *s2, zval *s3);
|
||||||
ZEND_API int ZEND_FASTCALL zend_binary_zval_strcasecmp(zval *s1, zval *s2);
|
|
||||||
ZEND_API int ZEND_FASTCALL zend_binary_zval_strncasecmp(zval *s1, zval *s2, zval *s3);
|
|
||||||
ZEND_API int ZEND_FASTCALL zend_binary_strcmp(const char *s1, size_t len1, const char *s2, size_t len2);
|
ZEND_API int ZEND_FASTCALL zend_binary_strcmp(const char *s1, size_t len1, const char *s2, size_t len2);
|
||||||
ZEND_API int ZEND_FASTCALL zend_binary_strncmp(const char *s1, size_t len1, const char *s2, size_t len2, size_t length);
|
ZEND_API int ZEND_FASTCALL zend_binary_strncmp(const char *s1, size_t len1, const char *s2, size_t len2, size_t length);
|
||||||
ZEND_API int ZEND_FASTCALL zend_binary_strcasecmp(const char *s1, size_t len1, const char *s2, size_t len2);
|
ZEND_API int ZEND_FASTCALL zend_binary_strcasecmp(const char *s1, size_t len1, const char *s2, size_t len2);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue