Skip to content

Commit b0f09b6

Browse files
committed
Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3: Fixed bug #61650 (ini parser crashes when using ${xxxx} ini variables (without apache2))
2 parents 69b2570 + 9bf8cd4 commit b0f09b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main/SAPI.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,9 @@ SAPI_API char *sapi_getenv(char *name, size_t name_len TSRMLS_DC)
10161016
} else {
10171017
return NULL;
10181018
}
1019-
sapi_module.input_filter(PARSE_ENV, name, &value, strlen(value), NULL TSRMLS_CC);
1019+
if (sapi_module.input_filter) {
1020+
sapi_module.input_filter(PARSE_ENV, name, &value, strlen(value), NULL TSRMLS_CC);
1021+
}
10201022
return value;
10211023
}
10221024
return NULL;

0 commit comments

Comments
 (0)