andrei Tue Dec 12 18:05:08 2006 UTC Modified files: /php-src/main php_variables.c Log: Keep CLI args as binary strings. http://cvs.php.net/viewvc.cgi/php-src/main/php_variables.c?r1=1.134&r2=1.135&diff_format=u Index: php-src/main/php_variables.c diff -u php-src/main/php_variables.c:1.134 php-src/main/php_variables.c:1.135 --- php-src/main/php_variables.c:1.134 Sat Dec 9 14:17:17 2006 +++ php-src/main/php_variables.c Tue Dec 12 18:05:07 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_variables.c,v 1.134 2006/12/09 14:17:17 iliaa Exp $ */ +/* $Id: php_variables.c,v 1.135 2006/12/12 18:05:07 andrei Exp $ */ #include <stdio.h> #include "php.h" @@ -654,7 +654,8 @@ 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) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php