diff options
author | Xinchen Hui <laruence@gmail.com> | 2014-03-17 12:32:42 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2014-03-17 12:32:42 +0800 |
commit | 648f1081c971ff1ed96e1d45c72f4cbaca5ec148 (patch) | |
tree | 22c1ca8fa4604f0c79e843834671471aad24fe74 | |
parent | 7d8e990f29183dd6dd6f2892a79e7c7135f54032 (diff) | |
download | php-git-648f1081c971ff1ed96e1d45c72f4cbaca5ec148.tar.gz |
Fixed function name comparation
-rw-r--r-- | ext/reflection/php_reflection.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |