summaryrefslogtreecommitdiff
path: root/Zend/zend_objects.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2004-02-04 11:56:07 +0000
committerZeev Suraski <zeev@php.net>2004-02-04 11:56:07 +0000
commit3ac58bffcf4088ba66a97d09ff198ce576bed455 (patch)
tree2bb218ab0c6c095ba31e54dcc8fe8fe3f9d1c952 /Zend/zend_objects.c
parent27f54a4c136516ff3814f797957da9fa1353596a (diff)
downloadphp-git-3ac58bffcf4088ba66a97d09ff198ce576bed455.tar.gz
- Small fixes
Diffstat (limited to 'Zend/zend_objects.c')
-rw-r--r--Zend/zend_objects.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/Zend/zend_objects.c b/Zend/zend_objects.c
index 9b3311d62d..d29795e3aa 100644
--- a/Zend/zend_objects.c
+++ b/Zend/zend_objects.c
@@ -25,12 +25,6 @@
#include "zend_API.h"
#include "zend_interfaces.h"
-static inline void zend_nuke_object(zend_object *object TSRMLS_DC)
-{
- zend_hash_destroy(object->properties);
- FREE_HASHTABLE(object->properties);
- efree(object);
-}
ZEND_API void zend_objects_destroy_object(zend_object *object, zend_object_handle handle TSRMLS_DC)
{
@@ -46,7 +40,6 @@ ZEND_API void zend_objects_destroy_object(zend_object *object, zend_object_handl
if (object->ce != EG(scope)) {
zend_class_entry *ce = object->ce;
- zend_nuke_object(object TSRMLS_CC); /* unfortunately we *must* destroy it now anyway */
zend_error(EG(in_execution) ? E_ERROR : E_WARNING,
"Call to private %s::__destruct() from context '%s'%s",
ce->name,
@@ -60,7 +53,6 @@ ZEND_API void zend_objects_destroy_object(zend_object *object, zend_object_handl
if (!zend_check_protected(destructor->common.scope, EG(scope))) {
zend_class_entry *ce = object->ce;
- zend_nuke_object(object TSRMLS_CC); /* unfortunately we *must* destroy it now anyway */
zend_error(EG(in_execution) ? E_ERROR : E_WARNING,
"Call to protected %s::__destruct() from context '%s'%s",
ce->name,
@@ -82,7 +74,9 @@ ZEND_API void zend_objects_destroy_object(zend_object *object, zend_object_handl
ZEND_API void zend_objects_free_object_storage(zend_object *object TSRMLS_DC)
{
- zend_nuke_object(object TSRMLS_CC);
+ zend_hash_destroy(object->properties);
+ FREE_HASHTABLE(object->properties);
+ efree(object);
}
ZEND_API zend_object_value zend_objects_new(zend_object **object, zend_class_entry *class_type TSRMLS_DC)