summaryrefslogtreecommitdiff
path: root/ext/zlib/zlib.c
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2002-03-01 03:05:50 +0000
committerYasuo Ohgaki <yohgaki@php.net>2002-03-01 03:05:50 +0000
commit82a8d372e5fcbee52769f2c376fad34fec4bf63e (patch)
treee43c8ad75de35a270e87f87067a379f39c4cf6db /ext/zlib/zlib.c
parent28c5d0f0458304fe6048318567ced2c4610bce19 (diff)
downloadphp-git-82a8d372e5fcbee52769f2c376fad34fec4bf63e.tar.gz
Added ob_get_status() to get array of buffers and it's status.
(DO NOT document this function yet) Fixed crash bug with ob_end_*() function. ob_end_*() will not delete buffers that may not be deleted. php_start_ob_buffer() and php_ob_set_internal_handler() takes parameter for if the buffer created may be deleted or not. Added 3rd parameter "bool erase" to ob_start(). If FALSE, buffer may not be deleted until script finshes. Changed ob_*() function that have void return type to bool. All ob_*() functions return TRUE for success, FALSE for failure. @ - Added ob_get_status() to get array of buffers and it's status. (Yasuo) @ - Fixed crash bug with ob_end_*() function. ob_end_*() will not delete @ buffers that may not be deleted. (Yasuo) @ - Added 3rd parameter "bool erase" to ob_start(). If FALSE, buffer may not be @ deleted until script finshes. (Yasuo) @ - Changed ob_*() function that have void return type to bool. All ob_*() @ functions return TRUE for success, FALSE for failure. (Yasuo)
Diffstat (limited to 'ext/zlib/zlib.c')
-rw-r--r--ext/zlib/zlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 55e2dda70f..6f0f08d298 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -1283,8 +1283,8 @@ int php_enable_output_compression(int buffer_size TSRMLS_DC)
return FAILURE;
}
- php_start_ob_buffer(NULL, buffer_size TSRMLS_CC);
- php_ob_set_internal_handler(php_gzip_output_handler, buffer_size*1.5 TSRMLS_CC);
+ php_start_ob_buffer(NULL, buffer_size, 0 TSRMLS_CC);
+ php_ob_set_internal_handler(php_gzip_output_handler, buffer_size*1.5, "zlib output compression", 0 TSRMLS_CC);
return SUCCESS;
}
/* }}} */