{
php_http_option_t *opt = Z_PTR_P(pData);
+ zval_ptr_dtor(&opt->defval);
zend_hash_destroy(&opt->suboptions.options);
zend_string_release(opt->name);
+ pefree(opt, opt->persistent);
}
php_http_options_t *php_http_options_init(php_http_options_t *registry, zend_bool persistent)
opt.suboptions.getter = registry->getter;
opt.suboptions.setter = registry->setter;
+ opt.persistent = registry->persistent;
opt.name = zend_string_init(name_str, name_len, registry->persistent);
opt.type = type;
opt.option = option;
ZVAL_LONG(&opt.defval, 0);
break;
- case IS_STRING:
- ZVAL_EMPTY_STRING(&opt.defval);
- break;
-
case IS_DOUBLE:
ZVAL_DOUBLE(&opt.defval, 0);
break;