mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
- Add easy way to test in unicode mode
This commit is contained in:
parent
070ed30039
commit
83a8e3d2a8
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user