diff options
| author | Andrei Zmievski <andrei@php.net> | 2006-12-12 18:05:07 +0000 |
|---|---|---|
| committer | Andrei Zmievski <andrei@php.net> | 2006-12-12 18:05:07 +0000 |
| commit | 3de95b79c3322f7299ae82da4fcf00660ea595ac (patch) | |
| tree | 98a920b6c1523827b8098b7f6472638f2e837fa2 /main/php_variables.c | |
| parent | 8eb42705d72bb27ab532a741bf7d9b193bbdb8ab (diff) | |
| download | php-git-3de95b79c3322f7299ae82da4fcf00660ea595ac.tar.gz | |
Keep CLI args as binary strings.
Diffstat (limited to 'main/php_variables.c')
| -rw-r--r-- | main/php_variables.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/php_variables.c b/main/php_variables.c index bc9713cb50..e57c0f9ed8 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -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) { |
