summaryrefslogtreecommitdiff
path: root/main/php_variables.c
diff options
context:
space:
mode:
authorShane Caraveo <shane@php.net>2002-10-13 08:38:09 +0000
committerShane Caraveo <shane@php.net>2002-10-13 08:38:09 +0000
commit96b9c0a52321ea8974f051a83cf58bb7ec6144d9 (patch)
tree60116de08908d00f2f2cc556779739de8c6a7026 /main/php_variables.c
parentacb9bc95e386f36c8c0e8a7b39f63ec1b45f0132 (diff)
downloadphp-git-96b9c0a52321ea8974f051a83cf58bb7ec6144d9.tar.gz
make php_import_environment_variables overwritable so fastcgi can correctly
set $_ENV.
Diffstat (limited to 'main/php_variables.c')
-rw-r--r--main/php_variables.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/main/php_variables.c b/main/php_variables.c
index 6f6bd6e206..73e19a856a 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -28,6 +28,9 @@
#include "zend_globals.h"
+/* for systems that need to override reading of environment variables */
+void _php_import_environment_variables(zval *array_ptr TSRMLS_DC);
+PHPAPI void (*php_import_environment_variables)(zval *array_ptr TSRMLS_DC) = _php_import_environment_variables;
PHPAPI void php_register_variable(char *var, char *strval, zval *track_vars_array TSRMLS_DC)
{
@@ -318,8 +321,7 @@ SAPI_API SAPI_TREAT_DATA_FUNC(php_default_treat_data)
}
}
-
-void php_import_environment_variables(zval *array_ptr TSRMLS_DC)
+void _php_import_environment_variables(zval *array_ptr TSRMLS_DC)
{
char **env, *p, *t;