- allow options parameter to be NULL
[m6w6/ext-http] / http_request_object.c
index 81c051e2d37f37f03fde588e708e6e1367a7900c..f8347f780877e1792cebe9fec9a7c3a13c1d6de0 100644 (file)
@@ -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);
                }