X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_response_object.c;h=4cbba7299d668eb4521970d20a52259e02e747d1;hp=5d46fa509c73c7efaf2c4ec9428b71cae0dd0640;hb=7b88d9022c90eb12e5fe195af8644935141c9d68;hpb=bae1d9bccd93257b15065f1b51579b2d0b5cc1e4 diff --git a/http_response_object.c b/http_response_object.c index 5d46fa5..4cbba72 100644 --- a/http_response_object.c +++ b/http_response_object.c @@ -33,9 +33,6 @@ #include "php_http_response_object.h" #include "php_http_send_api.h" - -ZEND_EXTERN_MODULE_GLOBALS(http); - #define GET_STATIC_PROP(n) *GET_STATIC_PROP_EX(http_response_object_ce, n) #define UPD_STATIC_PROP(t, n, v) UPD_STATIC_PROP_EX(http_response_object_ce, t, n, v) #define SET_STATIC_PROP(n, v) SET_STATIC_PROP_EX(http_response_object_ce, n, v) @@ -1158,7 +1155,7 @@ PHP_METHOD(HttpResponse, send) } /* gzip */ - HTTP_G(send).gzip_encoding = zval_is_true(GET_STATIC_PROP(gzip)); + HTTP_G(send).deflate.encoding = zval_is_true(GET_STATIC_PROP(gzip)); /* start ob */ php_start_ob_buffer(NULL, HTTP_G(send).buffer_size, 0 TSRMLS_CC);