X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_std_defs.h;h=cf3e15fe97b07c251e6a8910c33049accc98684e;hp=f85198344526459e7aa2dab1d04c9caa627a8de8;hb=296a53ce9afb85164c2318e26e7d90b2c651d732;hpb=0e0def98a4ea4463bf8c21c6f161b2b37aa8c49d diff --git a/php_http_std_defs.h b/php_http_std_defs.h index f851983..cf3e15f 100644 --- a/php_http_std_defs.h +++ b/php_http_std_defs.h @@ -93,10 +93,7 @@ typedef int STATUS; } /* function accepts no args */ -#define NO_ARGS \ - if (ZEND_NUM_ARGS()) { \ - zend_error(E_NOTICE, "Wrong parameter count for %s()", get_active_function_name(TSRMLS_C)); \ - } +#define NO_ARGS zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, ""); /* CR LF */ #define HTTP_CRLF "\r\n" @@ -111,7 +108,7 @@ typedef int STATUS; #define HTTP_URL_ARGSEP "&" /* send buffer size */ -#define HTTP_SENDBUF_SIZE 40960 +#define HTTP_SENDBUF_SIZE 8000 /*40960*/ /* CURL buffer size */ #define HTTP_CURLBUF_SIZE 16384