X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_header_parser.c;h=fb844526dcc9bbebdb887fe4868ab67564ecafb0;hp=5dfaeddfe8c9067c2a6393d82ed1a0d20b535d28;hb=cc8acf603d067ea4ad52e676e43f03701728eb9d;hpb=a45c7a64ecf8422deed20efe256d5f5885679ba2 diff --git a/src/php_http_header_parser.c b/src/php_http_header_parser.c index 5dfaedd..fb84452 100644 --- a/src/php_http_header_parser.c +++ b/src/php_http_header_parser.c @@ -333,7 +333,11 @@ php_http_header_parser_state_t php_http_header_parser_parse_stream(php_http_head return PHP_HTTP_HEADER_PARSER_STATE_DONE; } -zend_class_entry *php_http_header_parser_class_entry; +static zend_class_entry *php_http_header_parser_class_entry; +zend_class_entry *php_http_get_header_parser_class_entry(void) +{ + return php_http_header_parser_class_entry; +} static zend_object_handlers php_http_header_parser_object_handlers; zend_object *php_http_header_parser_object_new(zend_class_entry *ce) @@ -425,7 +429,7 @@ static PHP_METHOD(HttpHeaderParser, stream) php_http_expect(SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS(), "rlz", &zstream, &flags, &zmsg), invalid_arg, return); - zend_replace_error_handling(EH_THROW, php_http_exception_unexpected_val_class_entry, &zeh); + zend_replace_error_handling(EH_THROW, php_http_get_exception_unexpected_val_class_entry(), &zeh); php_stream_from_zval(s, zstream); zend_restore_error_handling(&zeh);