diff options
Diffstat (limited to 'ext/mbstring/tests/cp5022x_encoding.phpt')
-rw-r--r-- | ext/mbstring/tests/cp5022x_encoding.phpt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/mbstring/tests/cp5022x_encoding.phpt b/ext/mbstring/tests/cp5022x_encoding.phpt index 341faa1a43..33a73a5e2e 100644 --- a/ext/mbstring/tests/cp5022x_encoding.phpt +++ b/ext/mbstring/tests/cp5022x_encoding.phpt @@ -204,6 +204,13 @@ for ($i = 0x21; $i <= 0x7E; $i++) { } } +/* Try truncated 2-byte characters */ +for ($i = 0x21; $i <= 0x7E; $i++) { + testInvalid("\x1B\$B" . chr($i), "\x00%", 'CP50220'); + testInvalid("\x1B\$B" . chr($i), "\x00%", 'CP50221'); + testInvalid("\x1B\$B" . chr($i), "\x00%", 'CP50222'); +} + echo "CP932 support OK\n"; /* Unicode codepoint for halfwidth katakana -> kuten code for ordinary katakana */ |