mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Keep CLI args as binary strings.
This commit is contained in:
parent
8eb42705d7
commit
3de95b79c3
1 changed files with 2 additions and 1 deletions
|
@ -654,7 +654,8 @@ static void php_build_argv(char *s, zval *track_vars_array TSRMLS_DC)
|
|||
int i;
|
||||
for (i = 0; i < SG(request_info).argc; i++) {
|
||||
ALLOC_ZVAL(tmp);
|
||||
ZVAL_RT_STRING(tmp, SG(request_info).argv[i], 1);
|
||||
/* leave args as binary, since the encoding is not known */
|
||||
ZVAL_STRING(tmp, SG(request_info).argv[i], 1);
|
||||
INIT_PZVAL(tmp);
|
||||
if (zend_hash_next_index_insert(Z_ARRVAL_P(arr), &tmp, sizeof(zval *), NULL) == FAILURE) {
|
||||
if (Z_TYPE_P(tmp) == IS_STRING) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue