From: Michael Wallner Date: Tue, 16 Aug 2005 15:12:49 +0000 (+0000) Subject: - parameter to set*() and add*() methods is optional X-Git-Tag: RELEASE_0_12_0~35 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=76d019d55561c397209d49f7d594f2cfe022cdf9 - parameter to set*() and add*() methods is optional --- diff --git a/http_request_object.c b/http_request_object.c index 9efde2d..d6447ca 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -562,7 +562,7 @@ static inline void _http_request_object_set_options_subr(INTERNAL_FUNCTION_PARAM zval *opts, **options, *new_options = NULL; getObject(http_request_object, obj); - if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a/!", &new_options)) { + if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|a/!", &new_options)) { RETURN_FALSE; } @@ -670,7 +670,7 @@ PHP_METHOD(HttpRequest, setOptions) zval *opts = NULL, *old_opts, **opt; getObject(http_request_object, obj); - if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a/!", &opts)) { + if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|a/!", &opts)) { RETURN_FALSE; }