com php-src: Made usage of php_hash_environment useful by updating instead of just adding argc: main/p hp_variables.c
| From: | Bob Weinand | Date: | Sat, 12 Apr 2014 21:53:21 +0000 |
| Subject: | com php-src: Made usage of php_hash_environment useful by updating instead of just adding argc: main/p hp_variables.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-76798@lists.php.net to get a copy of this message | ||
Commit: edd90e5ae3157cb64ebea5940574d846590b26fa
Author: Bob Weinand <bobwei9@hotmail.com> Sat, 12 Apr 2014 23:50:47 +0200
Parents: 1c3ed86211c25eb8f11330b5214d4e03672115ab
Branches: PHP-5.4
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=edd90e5ae3157cb64ebea5940574d846590b26fa
Log:
Made usage of php_hash_environment useful by updating instead of just adding argc
Changed paths:
M main/php_variables.c
Diff:
diff --git a/main/php_variables.c b/main/php_variables.c
index e9ec078..7cc2baa 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);