summaryrefslogtreecommitdiff
path: root/main/SAPI.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-02-18 16:44:01 +0400
committerDmitry Stogov <dmitry@zend.com>2014-02-18 16:44:01 +0400
commit7428cac6e8d1d7aca3e156def8f13e184ebd0c35 (patch)
tree9a15ce8ec334288f6510d102009812d661436fa5 /main/SAPI.c
parent9ddf3c57805f0bb76a26cb31ba33e64c04d2133c (diff)
downloadphp-git-7428cac6e8d1d7aca3e156def8f13e184ebd0c35.tar.gz
Use better data structures (incomplete)
Diffstat (limited to 'main/SAPI.c')
-rw-r--r--main/SAPI.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index d9f55a58be..4f61e3a93c 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -798,7 +798,7 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC)
if (!strncmp(ptr, "image/", sizeof("image/")-1)) {
zend_string *key = STR_INIT("zlib.output_compression", sizeof("zlib.output_compression")-1, 0);
zend_alter_ini_entry(key, "0", sizeof("0") - 1, PHP_INI_USER, PHP_INI_STAGE_RUNTIME);
- STR_FREE(key);
+ STR_RELEASE(key);
}
mimetype = estrdup(ptr);
@@ -827,7 +827,7 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC)
zend_string *key = STR_INIT("zlib.output_compression", sizeof("zlib.output_compression")-1, 0);
zend_alter_ini_entry(key,
"0", sizeof("0") - 1, PHP_INI_USER, PHP_INI_STAGE_RUNTIME);
- STR_FREE(key);
+ STR_RELEASE(key);
} else if (!STRCASECMP(header_line, "Location")) {
if ((SG(sapi_headers).http_response_code < 300 ||
SG(sapi_headers).http_response_code > 307) &&