mirror of
https://github.com/php/php-src.git
synced 2026-04-04 14:42:49 +02:00
- Treat truncated multi-byte characters as an error. - Don't allow ASCII control characters to appear in the middle of a multi-byte character. - There was also a bug whereby some unrecognized Unicode codepoints would be passed through to the output unchanged when converting Unicode to EUC-KR.
17 lines
359 B
PHP
17 lines
359 B
PHP
--TEST--
|
|
Exhaustive test of verification and conversion of EUC-KR text
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--SKIPIF--
|
|
<?php
|
|
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
include('encoding_tests.inc');
|
|
testEncodingFromUTF16ConversionTable(__DIR__ . '/data/EUC-KR.txt', 'EUC-KR');
|
|
?>
|
|
--EXPECT--
|
|
Tested EUC-KR -> UTF-16BE
|
|
Tested UTF-16BE -> EUC-KR
|