From 76d019d55561c397209d49f7d594f2cfe022cdf9 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 16 Aug 2005 15:12:49 +0000 Subject: [PATCH] - parameter to set*() and add*() methods is optional --- http_request_object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.30.2