Fixed bug #63757 (getenv() produces memory leak with CGI SAPI)

This commit is contained in:
Dmitry Stogov 2012-12-13 13:39:42 +04:00
parent 1f516510b7
commit 35f86d24d8
2 changed files with 4 additions and 1 deletions

3
NEWS
View File

@ -2,6 +2,9 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2012, PHP 5.4.11
- Filter:
. Fixed bug #63757 (getenv() produces memory leak with CGI SAPI). (Dmitry)
- JSON:
. Fixed bug #63737 (json_decode does not properly decode with options
parameter). (Adam)

View File

@ -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;
}