From 77b3ffbc5a3a175821ca9354d274011e8f33781c Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Mon, 7 Oct 2002 21:46:44 +0000 Subject: [PATCH] - 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. --- Zend/zend_execute.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.40.0