mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Fixed incorrect string length
This commit is contained in:
parent
455bcc4182
commit
b9a5db2b55
@ -2846,7 +2846,7 @@ static int zend_is_callable_check_class(zend_string *name, zend_fcall_info_cache
|
||||
ALLOCA_FLAG(use_heap);
|
||||
|
||||
STR_ALLOCA_ALLOC(lcname, name_len, use_heap);
|
||||
zend_str_tolower_copy(lcname->val, name->val, name_len + 1);
|
||||
zend_str_tolower_copy(lcname->val, name->val, name_len);
|
||||
|
||||
*strict_class = 0;
|
||||
if (name_len == sizeof("self") - 1 &&
|
||||
|
Loading…
Reference in New Issue
Block a user