summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-07-31 22:56:57 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-07-31 22:56:57 +0000
commitde7f7658cfabda9b8fa780fc78e3f6d3749e039e (patch)
treed8ce5b09ce6741716ebe0fd12e996e687842df24
parent0eb76eb2ec0496d320680df84aa3d72a60bba778 (diff)
downloadphp-git-de7f7658cfabda9b8fa780fc78e3f6d3749e039e.tar.gz
Only register server variables when needed.
-rw-r--r--main/php_variables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_variables.c b/main/php_variables.c
index 3bc3a2a9ba..b0dd0c5e52 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -639,7 +639,7 @@ int php_hash_environment(TSRMLS_D)
}
}
- if (!jit_initialization && !_gpc_flags[4]) {
+ if (!jit_initialization && !have_variables_order && !_gpc_flags[4]) {
php_register_server_variables(TSRMLS_C);
if (PG(register_globals)) {
php_autoglobal_merge(&EG(symbol_table), Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]) TSRMLS_CC);