X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_params.c;h=8db5c353bd18c004ecc8bef617431577fafcb526;hp=b51ab712657cab9e0fff62a8ca3d7ee982f2151c;hb=cc8acf603d067ea4ad52e676e43f03701728eb9d;hpb=a45c7a64ecf8422deed20efe256d5f5885679ba2 diff --git a/src/php_http_params.c b/src/php_http_params.c index b51ab71..8db5c35 100644 --- a/src/php_http_params.c +++ b/src/php_http_params.c @@ -1027,6 +1027,12 @@ void php_http_params_separator_free(php_http_params_token_t **separator) } } +static zend_class_entry *php_http_params_class_entry; +zend_class_entry *php_http_params_get_class_entry(void) +{ + return php_http_params_class_entry; +} + ZEND_BEGIN_ARG_INFO_EX(ai_HttpParams___construct, 0, 0, 0) ZEND_ARG_INFO(0, params) ZEND_ARG_INFO(0, param_sep) @@ -1043,7 +1049,7 @@ PHP_METHOD(HttpParams, __construct) php_http_expect(SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS(), "|z!/z/z/z/l", &zparams, ¶m_sep, &arg_sep, &val_sep, &flags), invalid_arg, return); - zend_replace_error_handling(EH_THROW, php_http_exception_runtime_class_entry, &zeh); + zend_replace_error_handling(EH_THROW, php_http_get_exception_runtime_class_entry(), &zeh); { switch (ZEND_NUM_ARGS()) { case 5: @@ -1283,8 +1289,6 @@ static zend_function_entry php_http_params_methods[] = { EMPTY_FUNCTION_ENTRY }; -zend_class_entry *php_http_params_class_entry; - PHP_MINIT_FUNCTION(http_params) { zend_class_entry ce = {0};