return SUCCESS;
}
-PHP_HTTP_API http_cookie_list *_http_cookie_list_init(http_cookie_list *list TSRMLS_DC)
+PHP_HTTP_API http_cookie_list *_http_cookie_list_init(http_cookie_list *list ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC TSRMLS_DC)
{
if (!list) {
- list = emalloc(sizeof(http_cookie_list));
+ list = emalloc_rel(sizeof(http_cookie_list));
}
zend_hash_init(&list->cookies, 0, NULL, ZVAL_PTR_DTOR, 0);
} else if (!strcasecmp(key, "domain")) {
STR_SET(list->domain, estrndup(value, value_len));
} else if (!strcasecmp(key, "expires")) {
- const char *date = estrndup(value, value_len);
+ char *date = estrndup(value, value_len);
list->expires = http_parse_date(date);
efree(date);
} else if (!strcasecmp(key, "secure")) {
http_cookie_list_dtor(list);
}
efree(s);
- return FAILURE;
+ return NULL;
}
/* }}} */