tony2001 Mon Apr 7 12:13:36 2008 UTC Modified files: /php-src/sapi/cli/tests bug44564.phpt Log: fix test http://cvs.php.net/viewvc.cgi/php-src/sapi/cli/tests/bug44564.phpt?r1=1.2&r2=1.3&diff_format=u Index: php-src/sapi/cli/tests/bug44564.phpt diff -u php-src/sapi/cli/tests/bug44564.phpt:1.2 php-src/sapi/cli/tests/bug44564.phpt:1.3 --- php-src/sapi/cli/tests/bug44564.phpt:1.2 Sun Mar 30 12:27:37 2008 +++ php-src/sapi/cli/tests/bug44564.phpt Mon Apr 7 12:13:36 2008 @@ -1,8 +1,14 @@ --TEST-- Bug #44564 (escapeshellarg removes UTF-8 multi-byte characters) +--SKIPIF-- +<?php +if (false == setlocale(LC_CTYPE, "UTF8", "en_US.UTF-8")) { + die("skip setlocale() failed\n"); +} +?> --FILE-- <?php - +setlocale(LC_CTYPE, "UTF8", "en_US.UTF-8"); var_dump(escapeshellcmd('f{o}<â¬>')); var_dump(escapeshellarg('f~|;*Ã?')); var_dump(escapeshellcmd('?â¬Â®Äæ?')); @@ -14,3 +20,9 @@ string(10) "'f~|;*Ã?'" string(13) "\?â¬Â®Äæ\?" string(10) "'aÅÅâ¬'" +--UEXPECTF-- +Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d +string(13) "f\{o\}\<â¬\>" +string(10) "'f~|;*Ã?'" +string(13) "\?â¬Â®Äæ\?" +string(10) "'aÅÅâ¬'"
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php