]> granicus.if.org Git - php/commitdiff
- Add easy way to test in unicode mode
authorMarcus Boerger <helly@php.net>
Mon, 3 Oct 2005 18:15:54 +0000 (18:15 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 3 Oct 2005 18:15:54 +0000 (18:15 +0000)
run-tests.php

index 6ca4196453ea40dcf1355e784db51bbcb5a758ad..e3a71a82a35fffb4451fbca71055303d7642c29c 100755 (executable)
@@ -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.