summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Wang <gwang@php.net>2014-09-08 23:58:05 -0400
committerGeorge Wang <gwang@php.net>2014-09-09 00:01:36 -0400
commit2470e01ab6d30e5ed3d890f0aaf1321215edb4cd (patch)
tree679a35f4641193ec4dcdaec17561872970ecf6b5
parentb625661248572f2080ba8e5d17cc994462e90f4c (diff)
downloadphp-git-2470e01ab6d30e5ed3d890f0aaf1321215edb4cd.tar.gz
Fine tuned the order of adding request variables.
-rw-r--r--sapi/litespeed/lsapi_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sapi/litespeed/lsapi_main.c b/sapi/litespeed/lsapi_main.c
index aea4265376..3da98b16bc 100644
--- a/sapi/litespeed/lsapi_main.c
+++ b/sapi/litespeed/lsapi_main.c
@@ -311,6 +311,8 @@ static void sapi_lsapi_register_variables(zval *track_vars_array TSRMLS_DC)
if ( (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 (!PG(magic_quotes_gpc)) {
#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 );
}
#endif
- litespeed_php_import_environment_variables(track_vars_array TSRMLS_CC);
} else {
php_import_environment_variables(track_vars_array TSRMLS_CC);