summaryrefslogtreecommitdiff
path: root/Zend/zend_objects.h
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2002-02-07 14:08:43 +0000
committerStanislav Malyshev <stas@php.net>2002-02-07 14:08:43 +0000
commit6608f07322789bd0896b265c29e13c0c9f5d5898 (patch)
tree3149fb62b09cbea8d328df4d930e4cddb99aef03 /Zend/zend_objects.h
parent5e9b1634c68dc70bbc6480fddb303d8807a943d2 (diff)
downloadphp-git-6608f07322789bd0896b265c29e13c0c9f5d5898.tar.gz
Mega-commit: Enter the new object model
Note: only standard Zend objects are working now. This is definitely going to break custom objects like COM, Java, etc. - this will be fixed later. Also, this may break other things that access objects' internals directly.
Diffstat (limited to 'Zend/zend_objects.h')
-rw-r--r--Zend/zend_objects.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/Zend/zend_objects.h b/Zend/zend_objects.h
index f068afa8f7..3ae67e4c71 100644
--- a/Zend/zend_objects.h
+++ b/Zend/zend_objects.h
@@ -28,10 +28,14 @@ void zend_objects_init(zend_objects *objects, zend_uint init_size);
void zend_objects_call_destructors(zend_objects *objects TSRMLS_DC);
void zend_objects_destroy(zend_objects *objects);
zend_object_value zend_objects_new(zend_object **object, zend_class_entry *class_type);
-zend_object *zend_objects_get_address(zend_object_handle handle);
-void zend_objects_add_ref(zend_object_handle handle);
-void zend_objects_del_ref(zend_object_handle handle);
-void zend_objects_delete_obj(zend_object_handle handle);
-zend_object_value zend_objects_clone_obj(zend_object_handle handle);
+
+zend_object *zend_objects_get_address(zval *object);
+
+void zend_objects_add_ref(zval *object);
+void zend_objects_del_ref(zval *object);
+void zend_objects_delete_obj(zval *object);
+zend_object_value zend_objects_clone_obj(zval *object);
+
+#define Z_GET_OBJ(object_zval) zend_objects_get_address(object_zval)
#endif /* ZEND_OBJECTS_H */