cvs: ZendEngine2 / zend_execute.c
| From: | Andi Gutmans | Date: | Mon, 07 Oct 2002 21:46:44 +0000 |
| Subject: | cvs: ZendEngine2 / zend_execute.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-475@lists.php.net to get a copy of this message | ||
andi Mon Oct 7 17:46:44 2002 EDT
Modified files:
/ZendEngine2 zend_execute.c
Log:
- 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.
Index: ZendEngine2/zend_execute.c
diff -u ZendEngine2/zend_execute.c:1.370 ZendEngine2/zend_execute.c:1.371
--- ZendEngine2/zend_execute.c:1.370 Sun Oct 6 15:55:31 2002
+++ ZendEngine2/zend_execute.c Mon Oct 7 17:46:44 2002
@@ -2027,6 +2027,7 @@
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 @@
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);
}