X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_object.c;h=d6447ca066b31fe664c7f32ff9be151985680725;hp=9efde2d9129c9da99b2fe5854eeb5683f42c3172;hb=76d019d55561c397209d49f7d594f2cfe022cdf9;hpb=145b09bdffde195fa02691ed7a40b28a9381712d 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; }