diff options
| author | Zeev Suraski <zeev@php.net> | 1999-12-01 20:42:56 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 1999-12-01 20:42:56 +0000 |
| commit | d6fd4856922268b69633570f72cb4cbd410ad3d8 (patch) | |
| tree | 15490d77b21ac0285b15dbabce203882f1861699 | |
| parent | 9bba81c296b6d9afa785caa3c55913e1cc54092c (diff) | |
| download | php-git-d6fd4856922268b69633570f72cb4cbd410ad3d8.tar.gz | |
@- Make the global GET/POST/Cookie variables and their $HTTP_*_VARS[] counterparts
@ be references to each other (Zeev)
| -rw-r--r-- | ext/standard/post.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/standard/post.c b/ext/standard/post.c index 4f55b21276..e74d85b5ac 100644 --- a/ext/standard/post.c +++ b/ext/standard/post.c @@ -293,10 +293,13 @@ void php_parse_gpc_data2(char *val, char *var, pval *track_vars_array ELS_DC PLS } } - if (symtable2 && top_gpc_p) { - zend_hash_update(symtable2, var, var_len+1, top_gpc_p, sizeof(zval *), NULL); - (*top_gpc_p)->refcount++; - } + if (top_gpc_p) { + (*top_gpc_p)->is_ref = 1; + if (symtable2) { + zend_hash_update(symtable2, var, var_len+1, top_gpc_p, sizeof(zval *), NULL); + (*top_gpc_p)->refcount++; + } + } } |
