1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00

- Fixed bug #49677 (ini parser crashes with apache2 and using ${something} ini variables)

This commit is contained in:
Jani Taskinen
2009-11-25 12:35:42 +00:00
parent afc44b981e
commit bf7ed5eff5
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -239,6 +239,10 @@ php_apache_sapi_getenv(char *name, size_t name_len TSRMLS_DC)
php_struct *ctx = SG(server_context);
const char *env_var;
if (ctx == NULL) {
return NULL;
}
env_var = apr_table_get(ctx->r->subprocess_env, name);
return (char *) env_var;