summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-11-28 14:42:25 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-11-28 14:42:25 +0000
commit7203684680ebe3a8cf144270b126e9553d36335a (patch)
treec9cdd2998c6982e2ce65094209e933b3e2781a6f /Zend/zend_API.c
parent9870f005e129904698f1ca4e8f052a8784d3895c (diff)
downloadphp-git-7203684680ebe3a8cf144270b126e9553d36335a.tar.gz
Add removed lcname, it is still needed.
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c2
1 files changed, 2 insertions, 0 deletions
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) {