xref: /PHP-8.1/ext/iconv/tests/bug79200.phpt (revision e9f783fc)
1--TEST--
2Bug #79200 (Some iconv functions cut Windows-1258)
3--EXTENSIONS--
4iconv
5--FILE--
6<?php
7var_dump(iconv_mime_decode('=?windows-1258?Q?test=20test?=', 0, 'UTF-8'));
8var_dump(iconv_strlen('test test', 'WINDOWS-1258'));
9var_dump(iconv_strpos('test test', 'test test', 0, 'WINDOWS-1258'));
10var_dump(iconv_substr('test test', 0 , 9, 'WINDOWS-1258'));
11?>
12--EXPECT--
13string(9) "test test"
14int(9)
15int(0)
16string(9) "test test"
17