xref: /PHP-7.3/ext/iconv/tests/bug79200.phpt (revision 32a26443)
1--TEST--
2Bug #79200 (Some iconv functions cut Windows-1258)
3--SKIPIF--
4<?php
5if (!extension_loaded('iconv')) die('skip iconv extension not available');
6?>
7--FILE--
8<?php
9var_dump(iconv_mime_decode('=?windows-1258?Q?test=20test?=', 0, 'UTF-8'));
10var_dump(iconv_strlen('test test', 'WINDOWS-1258'));
11var_dump(iconv_strpos('test test', 'test test', 0, 'WINDOWS-1258'));
12var_dump(iconv_substr('test test', 0 , 9, 'WINDOWS-1258'));
13?>
14--EXPECT--
15string(9) "test test"
16int(9)
17int(0)
18string(9) "test test"
19