- parameter to set*() and add*() methods is optional
authorMichael Wallner <mike@php.net>
Tue, 16 Aug 2005 15:12:49 +0000 (15:12 +0000)
committerMichael Wallner <mike@php.net>
Tue, 16 Aug 2005 15:12:49 +0000 (15:12 +0000)
http_request_object.c

index 9efde2d9129c9da99b2fe5854eeb5683f42c3172..d6447ca066b31fe664c7f32ff9be151985680725 100644 (file)
@@ -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;
        }