]> granicus.if.org Git - php/commitdiff
initialize bucket #0 with nulls (normally it shouldn't be used at all, but if it...
authorAntony Dovgal <tony2001@php.net>
Tue, 28 Mar 2006 21:58:01 +0000 (21:58 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 28 Mar 2006 21:58:01 +0000 (21:58 +0000)
Zend/zend_objects_API.c

index 0926c744c47adba09759b2d9406fe253dad9d657..3da112708e7f0f971d15e4e626a26d3599d791d9 100644 (file)
@@ -33,6 +33,7 @@ ZEND_API void zend_objects_store_init(zend_objects_store *objects, zend_uint ini
        objects->top = 1; /* Skip 0 so that handles are true */
        objects->size = init_size;
        objects->free_list_head = -1;
+       memset(&objects->object_buckets[0], 0, sizeof(zend_object_store_bucket));
 }
 
 ZEND_API void zend_objects_store_destroy(zend_objects_store *objects)