From edd90e5ae3157cb64ebea5940574d846590b26fa Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Sat, 12 Apr 2014 23:50:47 +0200 Subject: Made usage of php_hash_environment useful by updating instead of just adding argc --- main/php_variables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/php_variables.c') 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); -- cgit v1.2.1