mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Fixed bug #63757 (getenv() produces memory leak with CGI SAPI)
This commit is contained in:
parent
1f516510b7
commit
35f86d24d8
3
NEWS
3
NEWS
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user