com php-src: To be consistent with old PHP in is_callable(d o we really need it?): ext/standard/type.c
| From: | Dmitry Stogov | Date: | Thu, 06 Mar 2014 15:16:06 +0000 |
| Subject: | com php-src: To be consistent with old PHP in is_callable(d o we really need it?): ext/standard/type.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77701@lists.php.net to get a copy of this message | ||
Commit: e1a29600bcc6da9766058e0992c4b69aa53c230f
Author: Xinchen Hui <laruence@gmail.com> Thu, 6 Mar 2014 23:16:06 +0800
Parents: 9ed631a4d085c3293eb72ec73e15ea76ebe18f5e
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e1a29600bcc6da9766058e0992c4b69aa53c230f
Log:
To be consistent with old PHP in is_callable(do we really need it?)
Changed paths:
M ext/standard/type.c
Diff:
diff --git a/ext/standard/type.c b/ext/standard/type.c
index 955c906..182e4b9 100644
--- a/ext/standard/type.c
+++ b/ext/standard/type.c
@@ -394,6 +394,8 @@ PHP_FUNCTION(is_callable)
}
retval = zend_is_callable_ex(var, NULL, check_flags, &name, NULL, &error TSRMLS_CC);
zval_dtor(callable_name);
+ //??? is it necessary to be consistent with old PHP
+ name->len = strlen(name->val);
ZVAL_STR(callable_name, name);
} else {
retval = zend_is_callable_ex(var, NULL, check_flags, NULL, NULL, &error TSRMLS_CC);