From bf7e7f73ea5db037b861f781e958f09a8af39b53 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 23 Oct 2006 14:31:54 +0000 Subject: [PATCH] - allow options parameter to be NULL --- http_request_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2