- 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.
This commit is contained in:
Andi Gutmans 2002-10-07 21:46:44 +00:00
parent 7cba0254e7
commit 77b3ffbc5a

View File

@ -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);
}