mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
make php_import_environment_variables overwritable so fastcgi can correctly
set $_ENV.
This commit is contained in:
parent
acb9bc95e3
commit
96b9c0a523
2 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue