From: Ilia Alshanetsky Date: Fri, 28 Nov 2003 14:42:25 +0000 (+0000) Subject: Add removed lcname, it is still needed. X-Git-Tag: php-5.0.0b3RC1~562 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7203684680ebe3a8cf144270b126e9553d36335a;p=php Add removed lcname, it is still needed. --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 0228b9ee78..9d20c6a5b5 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1629,6 +1629,8 @@ ZEND_API zend_bool zend_is_callable(zval *callable, zend_bool syntax_only, char if (syntax_only) return 1; + lcname = zend_str_tolower_dup(Z_STRVAL_PP(method), Z_STRLEN_PP(method)); + if (EG(active_op_array) && strcmp(lcname, "self") == 0) { ce = EG(active_op_array)->scope; } else if (strcmp(lcname, "parent") == 0 && EG(active_op_array) && EG(active_op_array)->scope) {