diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2005-11-01 23:02:52 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2005-11-01 23:02:52 +0000 |
| commit | c1a09f63992daa55b478effa643d92b18144741a (patch) | |
| tree | 2401363d52759778be0835cc16f5417d863fd98b /main | |
| parent | aeb5830c20b97b101618448d0fae02eff2ac17a5 (diff) | |
| download | php-git-c1a09f63992daa55b478effa643d92b18144741a.tar.gz | |
MFB51: Fixed minor memory leak triggered by: -dzlib.output_compression=1 -m
Diffstat (limited to 'main')
| -rw-r--r-- | main/SAPI.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index 4b0335e716..d2347f050b 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -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; |
