cvs: ZendEngine2 / zend.c zend.h zend_compile.c
| From: | Stanislav Malyshev | Date: | Sun, 12 Jan 2003 17:16:07 +0000 |
| Subject: | cvs: ZendEngine2 / zend.c zend.h zend_compile.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-803@lists.php.net to get a copy of this message | ||
stas Sun Jan 12 12:16:07 2003 EDT
Modified files:
/ZendEngine2 zend.c zend.h zend_compile.c
Log:
RIP handle_* functions. ZE2 will use __ handlers instead.
# Yes, I know this will break some things. I will fix those I can find shortly.
Index: ZendEngine2/zend.c
diff -u ZendEngine2/zend.c:1.203 ZendEngine2/zend.c:1.204
--- ZendEngine2/zend.c:1.203 Sun Jan 12 09:25:58 2003
+++ ZendEngine2/zend.c Sun Jan 12 12:16:07 2003
@@ -387,9 +387,9 @@
zend_standard_class_def->constructor = NULL;
zend_standard_class_def->destructor = NULL;
zend_standard_class_def->clone = NULL;
- zend_standard_class_def->handle_function_call = NULL;
- zend_standard_class_def->handle_property_get = NULL;
- zend_standard_class_def->handle_property_set = NULL;
+ zend_standard_class_def->__call = NULL;
+ zend_standard_class_def->__get = NULL;
+ zend_standard_class_def->__set = NULL;
zend_standard_class_def->refcount = 1;
zend_standard_class_def->constants_updated = 0;
zend_standard_class_def->ce_flags = 0;
Index: ZendEngine2/zend.h
diff -u ZendEngine2/zend.h:1.193 ZendEngine2/zend.h:1.194
--- ZendEngine2/zend.h:1.193 Sun Jan 12 09:25:58 2003
+++ ZendEngine2/zend.h Sun Jan 12 12:16:07 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend.h,v 1.193 2003/01/12 14:25:58 sebastian Exp $ */
+/* $Id: zend.h,v 1.194 2003/01/12 17:16:07 stas Exp $ */
#ifndef ZEND_H
#define ZEND_H
@@ -326,9 +326,11 @@
zend_object_value (*create_object)(zend_class_entry *class_type TSRMLS_DC);
/* old handlers */
+#if 0
void (*handle_function_call)(INTERNAL_FUNCTION_PARAMETERS, zend_property_reference
*property_reference);
zval (*handle_property_get)(zend_property_reference *property_reference);
int (*handle_property_set)(zend_property_reference *property_reference, zval *value);
+#endif
};
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.342 ZendEngine2/zend_compile.c:1.343
--- ZendEngine2/zend_compile.c:1.342 Sun Jan 12 07:39:06 2003
+++ ZendEngine2/zend_compile.c Sun Jan 12 12:16:07 2003
@@ -1621,14 +1621,14 @@
zend_hash_merge(&ce->constants_table, &parent_ce->constants_table, (void (*)(void
*)) zval_add_ref, (void *) &tmp, sizeof(zval *), 0);
zend_hash_merge_ex(&ce->function_table, &parent_ce->function_table,
(copy_ctor_func_t) do_inherit_method, sizeof(zend_function), (zend_bool (*)(void *, void *))
do_inherit_method_check);
ce->parent = parent_ce;
- if (!ce->handle_property_get) {
- ce->handle_property_get = parent_ce->handle_property_get;
+ if (!ce->__get) {
+ ce->__get = parent_ce->__get;
}
- if (!ce->handle_property_set) {
- ce->handle_property_set = parent_ce->handle_property_set;
+ if (!ce->__set) {
+ ce->__set = parent_ce->__set;
}
- if (!ce->handle_function_call) {
- ce->handle_function_call = parent_ce->handle_function_call;
+ if (!ce->__call) {
+ ce->__call = parent_ce->__call;
}
do_inherit_parent_constructor(ce);
}
@@ -1665,10 +1665,6 @@
new_class_entry->__call = NULL;
new_class_entry->create_object = NULL;
- new_class_entry->handle_function_call = NULL;
- new_class_entry->handle_property_set = NULL;
- new_class_entry->handle_property_get = NULL;
-
new_class_entry->parent = NULL;
if (zend_hash_update(class_table, new_class_entry->name, name_length+1, &new_class_entry,
sizeof(zend_class_entry *), NULL) == FAILURE) {
@@ -2143,10 +2139,6 @@
new_class_entry->__call = NULL;
new_class_entry->create_object = NULL;
- new_class_entry->handle_function_call = NULL;
- new_class_entry->handle_property_set = NULL;
- new_class_entry->handle_property_get = NULL;
-
new_class_entry->parent = NULL;
if (parent_class_name->op_type != IS_UNUSED) {