From 83a8e3d2a823c0fe1fc113d1b2a5bb2cf195802b Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Mon, 3 Oct 2005 18:15:54 +0000 Subject: [PATCH] - Add easy way to test in unicode mode --- run-tests.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/run-tests.php b/run-tests.php index 6ca4196453..e3a71a82a3 100755 --- a/run-tests.php +++ b/run-tests.php @@ -257,6 +257,13 @@ if (isset($argc) && $argc > 1) { 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 @@ Options: -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. -- 2.50.1