From: Xinchen Hui Date: Mon, 17 Mar 2014 04:32:42 +0000 (+0800) Subject: Fixed function name comparation X-Git-Tag: POST_PHPNG_MERGE~412^2~292 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=648f1081c971ff1ed96e1d45c72f4cbaca5ec148;p=php Fixed function name comparation --- 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 */