From 648f1081c971ff1ed96e1d45c72f4cbaca5ec148 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Mon, 17 Mar 2014 12:32:42 +0800 Subject: [PATCH] Fixed function name comparation --- ext/reflection/php_reflection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 4531e3b1d5..9c822029fe 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -608,7 +608,7 @@ static void _class_string(string *str, zend_class_entry *ce, zval *obj, char *in if ((mptr->common.fn_flags & ZEND_ACC_CTOR) == 0 || mptr->common.scope == ce || zend_hash_get_current_key_ex(&ce->function_table, &key, &num_index, 0, &pos) != HASH_KEY_IS_STRING - || zend_binary_strcasecmp(key->val, key->len-1, mptr->common.function_name->val, len) == 0) + || zend_binary_strcasecmp(key->val, key->len, mptr->common.function_name->val, len) == 0) { zend_function *closure; /* see if this is a closure */ -- 2.50.1