helly Mon Oct 3 14:15:56 2005 EDT Modified files: /php-src run-tests.php Log: - Add easy way to test in unicode mode http://cvs.php.net/diff.php/php-src/run-tests.php?r1=1.231&r2=1.232&ty=u Index: php-src/run-tests.php diff -u php-src/run-tests.php:1.231 php-src/run-tests.php:1.232 --- php-src/run-tests.php:1.231 Thu Sep 15 12:19:37 2005 +++ php-src/run-tests.php Mon Oct 3 14:15:54 2005 @@ -23,7 +23,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: run-tests.php,v 1.231 2005/09/15 16:19:37 derick Exp $ */ +/* $Id: run-tests.php,v 1.232 2005/10/03 18:15:54 helly Exp $ */ /* Sanity check to ensure that pcre extension needed by this script is available. * In the event it is not, print a nice error message indicating that this script will @@ -257,6 +257,13 @@ case 'd': $ini_overwrites[] = $argv[++$i]; break; + case 'u': + $ini_overwrites[] = 'unicode_semantics=1'; + $ini_overwrites[] = 'unicode.runtime_encoding=iso-8859-1'; + $ini_overwrites[] = 'unicode.script_encoding=utf-8'; + $ini_overwrites[] = 'unicode.output_encoding=utf-8'; + $ini_overwrites[] = 'unicode.from_error_mode=U_INVALID_SUBSTITUTE'; + break; default: echo "Illegal switch specified!\n"; case "h": @@ -281,7 +288,9 @@ -n Pass -n option to the php binary (Do not use a php.ini). -d foo=bar Pass -d option to the php binary (Define INI entry foo - with value 'bar') + with value 'bar'). + + -u Test with unicode_semantics set on. -v Verbose mode.
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php