diff options
author | Dmitry Stogov <dmitry@zend.com> | 2012-12-13 13:39:42 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2012-12-13 13:39:42 +0400 |
commit | 35f86d24d81b81e8c755e82d0b2e76d36f4a0201 (patch) | |
tree | 75d4fd7b2d4e95a8bd8d9d50ccac4d39e1a016c9 /main | |
parent | 1f516510b77eade91e56de4f64183ea44d0cde0f (diff) | |
download | php-git-35f86d24d81b81e8c755e82d0b2e76d36f4a0201.tar.gz |
Fixed bug #63757 (getenv() produces memory leak with CGI SAPI)
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 fc4b7bee84..e72eafb066 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -1017,7 +1017,7 @@ SAPI_API char *sapi_getenv(char *name, size_t name_len TSRMLS_DC) return NULL; } if (sapi_module.input_filter) { - sapi_module.input_filter(PARSE_ENV, name, &value, strlen(value), NULL TSRMLS_CC); + sapi_module.input_filter(PARSE_STRING, name, &value, strlen(value), NULL TSRMLS_CC); } return value; } |