mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
Fine tuned the order of adding request variables.
This commit is contained in:
parent
582f42b8d4
commit
d2e1a04b10
@ -311,6 +311,8 @@ static void sapi_lsapi_register_variables(zval *track_vars_array TSRMLS_DC)
|
|||||||
if ( (SG(request_info).request_uri ) )
|
if ( (SG(request_info).request_uri ) )
|
||||||
php_self = (SG(request_info).request_uri );
|
php_self = (SG(request_info).request_uri );
|
||||||
|
|
||||||
|
litespeed_php_import_environment_variables(track_vars_array TSRMLS_CC);
|
||||||
|
|
||||||
#if ((PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION < 4) || PHP_MAJOR_VERSION < 5)
|
#if ((PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION < 4) || PHP_MAJOR_VERSION < 5)
|
||||||
if (!PG(magic_quotes_gpc)) {
|
if (!PG(magic_quotes_gpc)) {
|
||||||
#endif
|
#endif
|
||||||
@ -324,7 +326,6 @@ static void sapi_lsapi_register_variables(zval *track_vars_array TSRMLS_DC)
|
|||||||
add_variable_magic_quote("PHP_SELF", 8, php_self, strlen( php_self ), track_vars_array );
|
add_variable_magic_quote("PHP_SELF", 8, php_self, strlen( php_self ), track_vars_array );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
litespeed_php_import_environment_variables(track_vars_array TSRMLS_CC);
|
|
||||||
} else {
|
} else {
|
||||||
php_import_environment_variables(track_vars_array TSRMLS_CC);
|
php_import_environment_variables(track_vars_array TSRMLS_CC);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user