Skip to content
Browse files

Fixed bug #61650 (ini parser crashes when using ${xxxx} ini variables…

… (without apache2))
  • Loading branch information...
1 parent a4e6394 commit 8ccf0655776c512f1e1c341e115e07d0e8ba6091 @laruence laruence committed with johannes Apr 6, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 main/SAPI.c
View
4 main/SAPI.c
@@ -945,7 +945,9 @@ SAPI_API char *sapi_getenv(char *name, size_t name_len TSRMLS_DC)
} else {
return NULL;
}
- sapi_module.input_filter(PARSE_ENV, name, &value, strlen(value), NULL TSRMLS_CC);
+ if (sapi_module.input_filter) {
+ sapi_module.input_filter(PARSE_ENV, name, &value, strlen(value), NULL TSRMLS_CC);
+ }
return value;
}
return NULL;

0 comments on commit 8ccf065

Please sign in to comment.
Something went wrong with that request. Please try again.