Skip to content

Commit 35f86d2

Browse files
committed
Fixed bug #63757 (getenv() produces memory leak with CGI SAPI)
1 parent 1f51651 commit 35f86d2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? 2012, PHP 5.4.11
44

5+
- Filter:
6+
. Fixed bug #63757 (getenv() produces memory leak with CGI SAPI). (Dmitry)
7+
58
- JSON:
69
. Fixed bug #63737 (json_decode does not properly decode with options
710
parameter). (Adam)

main/SAPI.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ SAPI_API char *sapi_getenv(char *name, size_t name_len TSRMLS_DC)
10171017
return NULL;
10181018
}
10191019
if (sapi_module.input_filter) {
1020-
sapi_module.input_filter(PARSE_ENV, name, &value, strlen(value), NULL TSRMLS_CC);
1020+
sapi_module.input_filter(PARSE_STRING, name, &value, strlen(value), NULL TSRMLS_CC);
10211021
}
10221022
return value;
10231023
}

0 commit comments

Comments
 (0)