X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_client_factory.c;h=1b14f481dac82a2592f3ed056b808ed33a8e8cc6;hp=a7052115b8ef6205310a043f544de87c3918d25e;hb=c0d96fe2c0d156412bcb22bf5b9f5e9ed0046c9c;hpb=dc34435880de3900616a80a2466105790e7a118a diff --git a/php_http_client_factory.c b/php_http_client_factory.c index a705211..1b14f48 100644 --- a/php_http_client_factory.c +++ b/php_http_client_factory.c @@ -174,10 +174,10 @@ PHP_METHOD(HttpClientFactory, createClient) PHP_METHOD(HttpClientFactory, createPool) { int argc = 0; - zval ***argv; + zval ***argv = NULL; with_error_handling(EH_THROW, php_http_exception_get_class_entry()) { - if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|*", &argv, &argc)) { + if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "*", &argv, &argc)) { with_error_handling(EH_THROW, php_http_exception_get_class_entry()) { int i; zval *zdriver; @@ -238,7 +238,7 @@ PHP_METHOD(HttpClientFactory, createDataShare) zval ***argv; with_error_handling(EH_THROW, php_http_exception_get_class_entry()) { - if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|*", &argv, &argc)) { + if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "*", &argv, &argc)) { with_error_handling(EH_THROW, php_http_exception_get_class_entry()) { int i; zval *zdriver;