X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_response_object.c;h=5303d2d0ed76bd1c934b2428dad2ad8a5d3dc652;hp=6490238b2e966cbbfad9fb4ee4f0e44ddf818d3d;hb=445dd5f0580e5073d69d3ef7267671686e18f4e7;hpb=4a1c5914eccd82e0936f35f0804a9e35ed632f83 diff --git a/http_response_object.c b/http_response_object.c index 6490238..5303d2d 100644 --- a/http_response_object.c +++ b/http_response_object.c @@ -155,7 +155,6 @@ zend_function_entry http_response_object_fe[] = { {NULL, NULL, NULL} }; -static zend_object_handlers http_response_object_handlers; void _http_response_object_init(INIT_FUNC_ARGS) { @@ -269,7 +268,7 @@ PHP_METHOD(HttpResponse, setCacheControl) #define HTTP_CACHECONTROL_TEMPLATE "%s, must-revalidate, max_age=%ld" - if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &ccontrol, &cc_len, &max_age)) { + if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &ccontrol, &cc_len, &max_age)) { RETURN_FALSE; } @@ -649,7 +648,7 @@ PHP_METHOD(HttpResponse, send) /* gzip */ if (Z_LVAL_P(GET_STATIC_PROP(gzip))) { - php_start_ob_buffer_named("ob_gzhandler", 0, 0 TSRMLS_CC); + php_start_ob_buffer_named("ob_gzhandler", 0, 1 TSRMLS_CC); } else { php_start_ob_buffer(NULL, 0, 0 TSRMLS_CC); }