com php-src: Fixed function name comparation: ext/reflection/ph p_reflection.c

From: Date: Mon, 17 Mar 2014 04:32:42 +0000
Subject: com php-src: Fixed function name comparation: ext/reflection/ph p_reflection.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77605@lists.php.net to get a copy of this message
Commit: 648f1081c971ff1ed96e1d45c72f4cbaca5ec148 Author: Xinchen Hui <laruence@gmail.com> Mon, 17 Mar 2014 12:32:42 +0800 Parents: 7d8e990f29183dd6dd6f2892a79e7c7135f54032 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=648f1081c971ff1ed96e1d45c72f4cbaca5ec148 Log: Fixed function name comparation Changed paths: M ext/reflection/php_reflection.c Diff: diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 4531e3b..9c82202 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 */

« previous php.cvs (#77605) next »