Skip to content

Commit 9bf8cd4

Browse files
committed
Fixed bug #61650 (ini parser crashes when using ${xxxx} ini variables (without apache2))
1 parent 381edb4 commit 9bf8cd4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

NEWS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ PHP NEWS
1818
(merge after 5.3.11 release)
1919

2020
- Core:
21-
- Fixed bug #61605 (header_remove() does not remove all headers).
21+
. Fixed bug #61650 (ini parser crashes when using ${xxxx} ini variables
22+
(without apache2)). (Laruence)
23+
. Fixed bug #61605 (header_remove() does not remove all headers).
2224
(Laruence)
2325
. Fixed bug #61541 (Segfault when using ob_* in output_callback).
2426

main/SAPI.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,9 @@ SAPI_API char *sapi_getenv(char *name, size_t name_len TSRMLS_DC)
980980
} else {
981981
return NULL;
982982
}
983-
sapi_module.input_filter(PARSE_ENV, name, &value, strlen(value), NULL TSRMLS_CC);
983+
if (sapi_module.input_filter) {
984+
sapi_module.input_filter(PARSE_ENV, name, &value, strlen(value), NULL TSRMLS_CC);
985+
}
984986
return value;
985987
}
986988
return NULL;

0 commit comments

Comments
 (0)