Skip to content

Commit

Permalink
- Fixed bug #48994 (zlib.output_compression does not ouput HTTP heade…
Browse files Browse the repository at this point in the history
…rs when set to a string value)

# also fixes bug #35936 (ini.zlib.output-compression Documentation :)
  • Loading branch information
Jani Taskinen committed Aug 3, 2009
1 parent 748590c commit 329c258
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ PHP NEWS
(Jani)
- Fixed bug #49026 (proc_open() can bypass safe_mode_protected_env_vars
restrictions). (Ilia)
- Fixed bug #48994 (zlib.output_compression does not ouput HTTP headers when
set to a string value). (Jani)
- Fixed bug #48980 (Crash when compiling with pdo_firebird). (Felipe)
- Fixed bug #48962 (cURL does not upload files with specified filename).
(Ilia)
Expand Down
2 changes: 2 additions & 0 deletions ext/zlib/php_zlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ ZEND_BEGIN_MODULE_GLOBALS(zlib)
char *output_handler;
ZEND_END_MODULE_GLOBALS(zlib)

PHPAPI ZEND_EXTERN_MODULE_GLOBALS(zlib)

extern php_stream_filter_factory php_zlib_filter_factory;
extern zend_module_entry php_zlib_module_entry;
#define zlib_module_ptr &php_zlib_module_entry
Expand Down
2 changes: 1 addition & 1 deletion main/SAPI.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ SAPI_API int sapi_send_headers(TSRMLS_D)
/* Add output compression headers at this late stage in order to make
it possible to switch it off inside the script. */

if (zend_ini_long("zlib.output_compression", sizeof("zlib.output_compression"), 0)) {
if (ZLIBG(output_compression)) {
zval nm_zlib_get_coding_type;
zval *uf_result = NULL;

Expand Down

0 comments on commit 329c258

Please sign in to comment.