summaryrefslogtreecommitdiff
path: root/main/php_variables.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-03-28 18:09:28 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-03-28 18:09:28 +0000
commitec841c8e124f9ef8c44212e7e330c3729fff5a3c (patch)
tree2488f0219305e66fddff901ff4a14ed43466b5ee /main/php_variables.c
parentcaeeebebc1a2c7654a9efd35678be34ce7f9a51e (diff)
downloadphp-git-ec841c8e124f9ef8c44212e7e330c3729fff5a3c.tar.gz
Fixed memory leak when variables_order does not contain 'S'.
Diffstat (limited to 'main/php_variables.c')
-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 f9608a2655..8379cfa955 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -668,7 +668,7 @@ int php_hash_environment(TSRMLS_D)
}
for (i=0; i<num_track_vars; i++) {
- if (jit_initialization && auto_global_records[i].jit_initialization) {
+ if ((jit_initialization && auto_global_records[i].jit_initialization) || _gpc_flags[i]) {
continue;
}
if (!PG(http_globals)[i]) {