X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_std_defs.h;h=58531b8ca4d6c2f590ae19edb1b570559bcb90a9;hp=d41ba00d1aa39161296166fbf98fe893cb5ba093;hb=5178ff512e676873a875cff22f65468d2d325fde;hpb=64b8eb68455c36e7e153014deaf52a6f9d2de39c diff --git a/php_http_std_defs.h b/php_http_std_defs.h index d41ba00..58531b8 100644 --- a/php_http_std_defs.h +++ b/php_http_std_defs.h @@ -244,6 +244,16 @@ typedef int STATUS; #define HTTP_E_URL 7L #define HTTP_E_MSG 8L +#ifdef ZEND_ENGINE_2 +# define HTTP_BEGIN_ARGS_EX(class, method, ret_ref, req_args) static ZEND_BEGIN_ARG_INFO_EX(args_for_ ##class## _ ##method , 0, ret_ref, req_args) +# define HTTP_BEGIN_ARGS_AR(class, method, ret_ref, req_args) static ZEND_BEGIN_ARG_INFO_EX(args_for_ ##class## _ ##method , 1, ret_ref, req_args) +# define HTTP_END_ARGS } +# define HTTP_EMPTY_ARGS_EX(class, method, ret_ref) HTTP_BEGIN_ARGS_EX(class, method, ret_ref, 0) HTTP_END_ARGS +# define HTTP_ARGS(class, method) args_for_ ##class## _ ##method +# define HTTP_ARG_VAL(name, pass_ref) ZEND_ARG_INFO(pass_ref, name) +# define HTTP_ARG_OBJ(class, name, allow_null) ZEND_ARG_OBJ_INFO(1, name, class, allow_null) +#endif + #ifdef HTTP_HAVE_CURL # ifdef ZEND_ENGINE_2 # define HTTP_DECLARE_ARG_PASS_INFO() \