diff options
author | Dmitry Stogov <dmitry@php.net> | 2006-03-17 15:04:23 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2006-03-17 15:04:23 +0000 |
commit | fb7324bb71048bb320d2c97c4924aadc5ef3aaa0 (patch) | |
tree | 58bc56e6daf524f6093cdd1523c70b9770e41718 /main/php_variables.c | |
parent | c6b425432a5c649b6fb81dd891ab0c46ed307bc2 (diff) | |
download | php-git-fb7324bb71048bb320d2c97c4924aadc5ef3aaa0.tar.gz |
Fixed register_argc_argv
Diffstat (limited to 'main/php_variables.c')
-rw-r--r-- | main/php_variables.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/php_variables.c b/main/php_variables.c index 8e2bb87f30..2bfe566a1a 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -639,7 +639,7 @@ static void php_build_argv(char *s, zval *track_vars_array TSRMLS_DC) int count = 0; char *ss, *space; - if (!(SG(request_info).argc || track_vars_array)) { + if (!(SG(request_info).argc || (s && *s))) { return; } @@ -696,7 +696,7 @@ static void php_build_argv(char *s, zval *track_vars_array TSRMLS_DC) argc->is_ref = 0; argc->refcount = 0; - if (SG(request_info).argc) { + if (Z_LVAL_P(argc)) { arr->refcount++; argc->refcount++; zend_hash_update(&EG(symbol_table), "argv", sizeof("argv"), &arr, sizeof(zval *), NULL); |