diff options
| author | Andi Gutmans <andi@php.net> | 2002-02-04 19:29:56 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2002-02-04 19:29:56 +0000 |
| commit | e366f5dbd8a6a56966e07443f0b59eb7d818f037 (patch) | |
| tree | 0f2f109a6a9808995bec11ec6a538618e25a2828 /Zend/zend_objects.c | |
| parent | 5f52b45708e303b5a09bef6ee0ddc50fb30c3bc0 (diff) | |
| download | php-git-e366f5dbd8a6a56966e07443f0b59eb7d818f037.tar.gz | |
- Fix problem with the objects_destructor called during shutdown. It was
- freeing objects from id 0 instead of id 1. id 0 is not used.
- Change isset/empty opcodes to support static members and the new way of
- doing $this->foobar. Also the opcodes operate now on the hash table
- combined with the variable names so that they can be overloaded by the
- soon to be added overloading patch.
Diffstat (limited to 'Zend/zend_objects.c')
| -rw-r--r-- | Zend/zend_objects.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_objects.c b/Zend/zend_objects.c index bdb77f05d0..ddbbee5f2a 100644 --- a/Zend/zend_objects.c +++ b/Zend/zend_objects.c @@ -72,9 +72,9 @@ static inline void zend_objects_destroy_object(zend_object *object, zend_object_ void zend_objects_call_destructors(zend_objects *objects TSRMLS_DC) { - int i = 1; + zend_uint i = 1; - for (i = 0; i < objects->top ; i++) { + for (i = 1; i < objects->top ; i++) { if (EG(objects).object_buckets[i].valid) { EG(objects).object_buckets[i].constructor_called = 1; zend_objects_destroy_object(&EG(objects).object_buckets[i].bucket.obj.object, i TSRMLS_CC); |
