make php_import_environment_variables overwritable so fastcgi can correctly

set $_ENV.
This commit is contained in:
Shane Caraveo 2002-10-13 08:38:09 +00:00
parent acb9bc95e3
commit 96b9c0a523
2 changed files with 5 additions and 3 deletions

View file

@ -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;