Skip to content

Commit edd90e5

Browse files
committed
Made usage of php_hash_environment useful by updating instead of just adding argc
1 parent 1c3ed86 commit edd90e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/php_variables.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ static void php_build_argv(char *s, zval *track_vars_array TSRMLS_DC)
519519
Z_ADDREF_P(arr);
520520
Z_ADDREF_P(argc);
521521
zend_hash_update(&EG(symbol_table), "argv", sizeof("argv"), &arr, sizeof(zval *), NULL);
522-
zend_hash_add(&EG(symbol_table), "argc", sizeof("argc"), &argc, sizeof(zval *), NULL);
522+
zend_hash_update(&EG(symbol_table), "argc", sizeof("argc"), &argc, sizeof(zval *), NULL);
523523
}
524524
if (track_vars_array) {
525525
Z_ADDREF_P(arr);

0 commit comments

Comments
 (0)