Revert "Use binary safe case compare in new zend_string API"

This reverts commit eb5cc1372c.

A) I'm using the function incorectly
B) Somehow the function is undefined although it's used in other zend_string APIs
This commit is contained in:
George Peter Banyard 2023-07-05 18:13:04 +01:00
parent eb5cc1372c
commit a342138e17
No known key found for this signature in database
GPG Key ID: 3306078E3194AEBD

View File

@ -413,7 +413,7 @@ static zend_always_inline bool zend_string_starts_with(const zend_string *str, c
static zend_always_inline bool zend_string_starts_with_cstr_ci(const zend_string *str, const char *prefix, size_t prefix_length)
{
return ZSTR_LEN(str) >= prefix_length && !zend_binary_strcasecmp(ZSTR_VAL(str), prefix, prefix_length);
return ZSTR_LEN(str) >= prefix_length && !strncasecmp(ZSTR_VAL(str), prefix, prefix_length);
}
static zend_always_inline bool zend_string_starts_with_ci(const zend_string *str, const zend_string *prefix)