mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix $_SERVER['argv'] and $_SERVER['argc']
This commit is contained in:
parent
90100e5c90
commit
dd7bdcf4b1
1 changed files with 2 additions and 1 deletions
|
@ -438,7 +438,8 @@ static void php_build_argv(char *s, zval *track_vars_array TSRMLS_DC)
|
|||
argc->refcount++;
|
||||
zend_hash_update(&EG(symbol_table), "argv", sizeof("argv"), &arr, sizeof(zval *), NULL);
|
||||
zend_hash_add(&EG(symbol_table), "argc", sizeof("argc"), &argc, sizeof(zval *), NULL);
|
||||
} else if (!SG(request_info).argc) {
|
||||
}
|
||||
if (track_vars_array) {
|
||||
arr->refcount++;
|
||||
argc->refcount++;
|
||||
zend_hash_update(Z_ARRVAL_P(track_vars_array), "argv", sizeof("argv"), &arr, sizeof(pval *), NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue