From: Bob Weinand Date: Sat, 12 Apr 2014 21:50:47 +0000 (+0200) Subject: Made usage of php_hash_environment useful by updating instead of just adding argc X-Git-Tag: php-5.5.12RC1~21^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=edd90e5ae3157cb64ebea5940574d846590b26fa;p=php Made usage of php_hash_environment useful by updating instead of just adding argc --- diff --git a/main/php_variables.c b/main/php_variables.c index e9ec0789bc..7cc2baa988 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -519,7 +519,7 @@ static void php_build_argv(char *s, zval *track_vars_array TSRMLS_DC) Z_ADDREF_P(arr); Z_ADDREF_P(argc); 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); + zend_hash_update(&EG(symbol_table), "argc", sizeof("argc"), &argc, sizeof(zval *), NULL); } if (track_vars_array) { Z_ADDREF_P(arr);