mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
MFB51: Fixed minor memory leak triggered by: -dzlib.output_compression=1 -m
This commit is contained in:
parent
aeb5830c20
commit
c1a09f6399
1 changed files with 1 additions and 1 deletions
|
@ -765,7 +765,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 (EG(in_execution) && zend_ini_long("zlib.output_compression", sizeof("zlib.output_compression"), 0)) {
|
||||
zval nm_zlib_get_coding_type;
|
||||
zval *uf_result = NULL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue