summaryrefslogtreecommitdiff
path: root/Zend/zend_execute.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2002-10-07 21:46:44 +0000
committerAndi Gutmans <andi@php.net>2002-10-07 21:46:44 +0000
commit77b3ffbc5a3a175821ca9354d274011e8f33781c (patch)
tree3b760516cd65012bf24b0436740f6ebe991bde7e /Zend/zend_execute.c
parent7cba0254e7aaecc9c5b23368533c2f5ef3a198fa (diff)
downloadphp-git-77b3ffbc5a3a175821ca9354d274011e8f33781c.tar.gz
- Require $this-> when calling a methods. This whole automatic lookup
- first in the class and then in the global scope is confusing, slow and - not quite BC compatible.
Diffstat (limited to 'Zend/zend_execute.c')
-rw-r--r--Zend/zend_execute.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index edeb00ef65..299cbfd20d 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -2027,6 +2027,7 @@ binary_assign_op_addr_obj:
do {
+ /*
if (EG(scope)) {
if (zend_hash_find(&EG(scope)->function_table, function_name_strval, function_name_strlen+1, (void **) &function) == SUCCESS) {
if ((EX(object) = EG(This))) {
@@ -2036,6 +2037,7 @@ binary_assign_op_addr_obj:
break;
}
}
+ */
if (zend_hash_find(EG(function_table), function_name_strval, function_name_strlen+1, (void **) &function)==FAILURE) {
zend_error(E_ERROR, "Call to undefined function: %s()", function_name_strval);
}