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;

View File

@ -31,7 +31,7 @@
#define PARSE_STRING 3
void php_treat_data(int arg, char *str, zval* destArray TSRMLS_DC);
PHPAPI void php_import_environment_variables(zval *array_ptr TSRMLS_DC);
extern PHPAPI void (*php_import_environment_variables)(zval *array_ptr TSRMLS_DC);
PHPAPI void php_register_variable(char *var, char *val, pval *track_vars_array TSRMLS_DC);
/* binary-safe version */
PHPAPI void php_register_variable_safe(char *var, char *val, int val_len, pval *track_vars_array TSRMLS_DC);