From e15f94764bb6ae59d0c8a6e4441925dd584c7f8d Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Tue, 2 Jul 2013 13:16:02 +0000 Subject: [PATCH] force clears and creation --- gnupg_keylistiterator.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnupg_keylistiterator.c b/gnupg_keylistiterator.c index a3fdb48..a510ed1 100644 --- a/gnupg_keylistiterator.c +++ b/gnupg_keylistiterator.c @@ -55,6 +55,9 @@ static void gnupg_keylistiterator_dtor(gnupg_keylistiterator_object *intern TSRM /* zval_dtor(&intern->pattern); */ +#if ZEND_MODULE_API_NO >= 20100525 + intern->zo.properties_table = NULL; +#endif if(intern->zo.properties){ zend_hash_destroy(intern->zo.properties); FREE_HASHTABLE(intern->zo.properties); @@ -71,7 +74,8 @@ zend_object_value gnupg_keylistiterator_objects_new(zend_class_entry *class_type intern = emalloc(sizeof(gnupg_keylistiterator_object)); intern->zo.ce = class_type; - intern->zo.properties = NULL; + + zend_object_std_init(&intern->zo, class_type TSRMLS_CC); retval.handle = zend_objects_store_put(intern,NULL,(zend_objects_free_object_storage_t) gnupg_keylistiterator_dtor,NULL TSRMLS_CC); retval.handlers = (zend_object_handlers *) & gnupg_keylistiterator_object_handlers;