diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-11-01 22:59:18 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-11-01 22:59:18 +0000 |
commit | 435b820f68d3f8840f139a4a2b0884764a86997f (patch) | |
tree | 6030c4c13320d539c8e205ac05b8fd340f5f2808 /main | |
parent | e02f8809f119eb49ca9fde93e4abae03bdd897c2 (diff) | |
download | php-git-435b820f68d3f8840f139a4a2b0884764a86997f.tar.gz |
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 132c1854f7..94e924c626 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -743,7 +743,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; |