Lowercase method name in zend_call_method()

This commit is contained in:
Nikita Popov 2020-08-26 15:19:23 +02:00
parent 86cd009718
commit 55798e0e39

View File

@ -53,7 +53,7 @@ ZEND_API zval* zend_call_method(zend_object *object, zend_class_entry *obj_ce, z
}
if (!fn_proxy || !*fn_proxy) {
if (EXPECTED(obj_ce)) {
fn = zend_hash_str_find_ptr(
fn = zend_hash_str_find_ptr_lc(
&obj_ce->function_table, function_name, function_name_len);
if (UNEXPECTED(fn == NULL)) {
/* error at c-level */