mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
make php_import_environment_variables overwritable so fastcgi can correctly
set $_ENV.
This commit is contained in:
parent
acb9bc95e3
commit
96b9c0a523
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user