diff options
| author | Stanislav Malyshev <stas@php.net> | 2002-04-30 09:56:48 +0000 |
|---|---|---|
| committer | Stanislav Malyshev <stas@php.net> | 2002-04-30 09:56:48 +0000 |
| commit | 7a067547cd55809e5fa670e2cfcf43f8ae5d27b0 (patch) | |
| tree | da93371e6bc2122f365c1768ba909de063d3f387 /Zend/zend_object_handlers.c | |
| parent | 3858221c2ff90cecd96b7e379b2157bbf1b9ede4 (diff) | |
| download | php-git-7a067547cd55809e5fa670e2cfcf43f8ae5d27b0.tar.gz | |
Make OBJCE return zend_class_entry*, also some cleanups
Diffstat (limited to 'Zend/zend_object_handlers.c')
| -rw-r--r-- | Zend/zend_object_handlers.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index c9efe5fbe5..eb95aca182 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -215,6 +215,14 @@ static int zend_std_has_property(zval *object, zval *member, int check_empty TSR return result; } +zend_class_entry *zend_std_object_get_class(zval *object TSRMLS_DC) +{ + zend_object *zobj; + zobj = Z_OBJ_P(object); + + return zobj->ce; +} + zend_object_handlers std_object_handlers = { zend_objects_add_ref, /* add_ref */ zend_objects_del_ref, /* del_ref */ @@ -233,8 +241,8 @@ zend_object_handlers std_object_handlers = { zend_std_get_method, /* get_method */ NULL, /* call_method */ zend_std_get_constructor, /* get_constructor */ - NULL, /* get_class_entry */ - NULL, /* get_class */ + zend_std_object_get_class, /* get_class_entry */ + NULL, /* get_class_name */ zend_std_compare_objects /* compare_objects */ }; |
