mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Use binary safe case compare in new zend_string API
This commit is contained in:
parent
ee22612856
commit
eb5cc1372c
1 changed files with 1 additions and 1 deletions
|
@ -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 && !strncasecmp(ZSTR_VAL(str), prefix, prefix_length);
|
||||
return ZSTR_LEN(str) >= prefix_length && !zend_binary_strcasecmp(ZSTR_VAL(str), prefix, prefix_length);
|
||||
}
|
||||
|
||||
static zend_always_inline bool zend_string_starts_with_ci(const zend_string *str, const zend_string *prefix)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue