X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_std_defs.h;h=a454d61dac1d36185a2f3d8648d5f4d951c09c04;hp=f85198344526459e7aa2dab1d04c9caa627a8de8;hb=798c9bcc3be9879c108f032cf354f83e243da1fb;hpb=0e0def98a4ea4463bf8c21c6f161b2b37aa8c49d diff --git a/php_http_std_defs.h b/php_http_std_defs.h index f851983..a454d61 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