From: Michael Wallner Date: Mon, 23 Oct 2006 14:31:54 +0000 (+0000) Subject: - allow options parameter to be NULL X-Git-Tag: RELEASE_1_3_3~7 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=bf7e7f73ea5db037b861f781e958f09a8af39b53;p=m6w6%2Fext-http - allow options parameter to be NULL --- diff --git a/http_request_object.c b/http_request_object.c index 81c051e..f8347f7 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -798,7 +798,7 @@ PHP_METHOD(HttpRequest, __construct) zval *options = NULL; SET_EH_THROW_HTTP(); - if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sla", &URL, &URL_len, &meth, &options)) { + if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sla!", &URL, &URL_len, &meth, &options)) { if (URL) { UPD_STRL(url, URL, URL_len); }