mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
val->len
This commit is contained in:
parent
005c9d0341
commit
22344ea595
1 changed files with 1 additions and 1 deletions
|
@ -408,7 +408,7 @@ ZEND_FUNCTION(method_exists)
|
|||
RETURN_FALSE;
|
||||
}
|
||||
convert_to_string_ex(method_name);
|
||||
lcname = estrndup((*method_name)->value.str.val, (*method_name)->value.str.val);
|
||||
lcname = estrndup((*method_name)->value.str.val, (*method_name)->value.str.len);
|
||||
zend_str_tolower(lcname, (*method_name)->value.str.len);
|
||||
if(zend_hash_exists(&(*klass)->value.obj.ce->function_table, lcname, (*method_name)->value.str.len+1)) {
|
||||
efree(lcname);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue