X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fphp_http_cookie.c;h=67b449427f7a90b6f2c1aaace7896436c2848050;hb=cc7863b379a13d310396cc88ca3d4d642f0dd869;hp=9625401aecdec149fdcaff522bd9e5f1269054ca;hpb=a5e66b221dbf5a52cc770f4d7f46f05fe88784ba;p=m6w6%2Fext-http diff --git a/src/php_http_cookie.c b/src/php_http_cookie.c index 9625401..67b4494 100644 --- a/src/php_http_cookie.c +++ b/src/php_http_cookie.c @@ -366,6 +366,11 @@ void php_http_cookie_list_to_string(php_http_cookie_list_t *list, char **str, si } +static zend_class_entry *php_http_cookie_class_entry; +zend_class_entry *php_http_cookie_get_class_entry(void) +{ + return php_http_cookie_class_entry; +} static zend_object_handlers php_http_cookie_object_handlers; @@ -439,7 +444,7 @@ static PHP_METHOD(HttpCookie, __construct) obj = PHP_HTTP_OBJ(NULL, getThis()); - 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); if (zcookie) { if (allowed_extras && zend_hash_num_elements(allowed_extras)) { @@ -1010,8 +1015,6 @@ static zend_function_entry php_http_cookie_methods[] = { EMPTY_FUNCTION_ENTRY }; -zend_class_entry *php_http_cookie_class_entry; - PHP_MINIT_FUNCTION(http_cookie) { zend_class_entry ce = {0};