X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_encoding_brotli.c;h=dbea978db988d3f2944e10d2580a317b874e2a0f;hp=a46a2f6af6f987e9dc3d77fb6496390e3e522980;hb=f7bda4412c966a3eb3d930cca798694bb321fa1a;hpb=6e51a51f7f316102113460250bc66f593063ad55 diff --git a/src/php_http_encoding_brotli.c b/src/php_http_encoding_brotli.c index a46a2f6..dbea978 100644 --- a/src/php_http_encoding_brotli.c +++ b/src/php_http_encoding_brotli.c @@ -397,10 +397,17 @@ static zend_function_entry php_http_debrotli_stream_methods[] = { EMPTY_FUNCTION_ENTRY }; +/* POS */ +const void *BrotliGetDictionary(); +const void *(*php_http_brotli_get_dictionary)(); + PHP_MINIT_FUNCTION(http_encoding_brotli) { zend_class_entry ce; + /* force link to libbrotlicommon, because their libraries don't */ + php_http_brotli_get_dictionary = BrotliGetDictionary(); + memset(&ce, 0, sizeof(ce)); INIT_NS_CLASS_ENTRY(ce, "http\\Encoding\\Stream", "Enbrotli", php_http_enbrotli_stream_methods); php_http_enbrotli_stream_class_entry = zend_register_internal_class_ex(&ce, php_http_get_encoding_stream_class_entry());