Skip to content

Commit

Permalink
- Fix copy&paste problem where we allocated according to an old struc…
Browse files Browse the repository at this point in the history
…ture

- decleration and not the new one.
  • Loading branch information
Andi Gutmans committed Jun 15, 2002
1 parent bdc88cd commit e8fe698
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
21 changes: 0 additions & 21 deletions Zend/zend_objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,6 @@

#include "zend.h"

typedef struct _zend_object_bucket {
zend_bool valid;
zend_bool destructor_called;
union _bucket {
struct {
zend_object object;
zend_uint refcount;
} obj;
struct {
int next;
} free_list;
} bucket;
} zend_object_bucket;

typedef struct _zend_objects {
zend_object_bucket *object_buckets;
zend_uint top;
zend_uint size;
int free_list_head;
} zend_objects;

zend_object_value zend_objects_new(zend_object **object, zend_class_entry *class_type);
zend_object *zend_objects_get_address(zval *object);
zend_object_value zend_objects_clone_obj(zval *object TSRMLS_DC);
Expand Down
2 changes: 1 addition & 1 deletion Zend/zend_objects_API.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

void zend_objects_store_init(zend_objects_store *objects, zend_uint init_size)
{
objects->object_buckets = (zend_object_store_bucket *) emalloc(init_size * sizeof(zend_object_bucket));
objects->object_buckets = (zend_object_store_bucket *) emalloc(init_size * sizeof(zend_object_store_bucket));
objects->top = 1; /* Skip 0 so that handles are true */
objects->size = init_size;
objects->free_list_head = -1;
Expand Down

0 comments on commit e8fe698

Please sign in to comment.