cvs: ZendEngine2 / zend_execute.c
| From: | Marcus Boerger | Date: | Wed, 07 Jan 2004 00:02:05 +0000 |
| Subject: | cvs: ZendEngine2 / zend_execute.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2182@lists.php.net to get a copy of this message | ||
helly Tue Jan 6 19:02:05 2004 EDT
Modified files:
/ZendEngine2 zend_execute.c
Log:
Revert patch that allowed to call sttaic methods via $method()
Index: ZendEngine2/zend_execute.c
diff -u ZendEngine2/zend_execute.c:1.579 ZendEngine2/zend_execute.c:1.580
--- ZendEngine2/zend_execute.c:1.579 Mon Jan 5 17:45:11 2004
+++ ZendEngine2/zend_execute.c Tue Jan 6 19:02:04 2004
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_execute.c,v 1.579 2004/01/05 22:45:11 helly Exp $ */
+/* $Id: zend_execute.c,v 1.580 2004/01/07 00:02:04 helly Exp $ */
#define ZEND_INTENSIVE_DEBUGGING 0
@@ -169,11 +169,7 @@
}
if (Z_OBJ_HT_P(object)->get_property_ptr_ptr) {
- zval **ptr_ptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, prop_ptr TSRMLS_CC);
- if(NULL == ptr_ptr) {
- zend_error(E_ERROR, "Cannot access undefined property for object with overloaded property
access");
- }
- T(result->u.var).var.ptr_ptr = ptr_ptr;
+ T(result->u.var).var.ptr_ptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, prop_ptr
TSRMLS_CC);
} else if (Z_OBJ_HT_P(object)->read_property) {
T(result->u.var).var.ptr = Z_OBJ_HT_P(object)->read_property(object, prop_ptr, 0
TSRMLS_CC);
T(result->u.var).var.ptr_ptr = &T(result->u.var).var.ptr;
@@ -2470,25 +2466,8 @@
lcname = zend_str_tolower_dup(function_name_strval, function_name_strlen);
if (zend_hash_find(EG(function_table), lcname, function_name_strlen+1, (void **)
&function)==FAILURE) {
- char *method;
- zend_class_entry **pce;
-
- if ((method = strstr(lcname, "::")) != NULL) {
- *method = '\0';
- method +=2;
- if (zend_lookup_class(lcname, strlen(lcname), &pce TSRMLS_CC) == SUCCESS) {
- if (zend_hash_find(&(*pce)->function_table, method, strlen(method)+1, (void **)
&function) == FAILURE) {
- efree(lcname);
- zend_error(E_ERROR, "Call to undefined method %s()", function_name_strval);
- }
- } else {
- efree(lcname);
- zend_error(E_ERROR, "Call to method of undefined class %s()", function_name_strval);
- }
- } else {
- efree(lcname);
- zend_error(E_ERROR, "Call to undefined function %s()", function_name_strval);
- }
+ efree(lcname);
+ zend_error(E_ERROR, "Call to undefined function %s()", function_name_strval);
}
efree(lcname);