]> granicus.if.org Git - php/commitdiff
Add removed lcname, it is still needed.
authorIlia Alshanetsky <iliaa@php.net>
Fri, 28 Nov 2003 14:42:25 +0000 (14:42 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 28 Nov 2003 14:42:25 +0000 (14:42 +0000)
Zend/zend_API.c

index 0228b9ee78c07da140e33cf15f1e0effb571604d..9d20c6a5b53f1e7dc4aebf79d8103843ecd7db34 100644 (file)
@@ -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) {