xref: /PHP-7.2/ext/iconv/tests/bug60494.phpt (revision e29c946c)
1--TEST--
2Bug #60494 (iconv_mime_decode does ignore special characters)
3--SKIPIF--
4<?php
5if (!extension_loaded('iconv')) die('skip iconv extension not available');
6?>
7--FILE--
8<?php
9var_dump(iconv_mime_decode('ä'));
10var_dump(iconv_mime_decode('ö'));
11var_dump(iconv_mime_decode('ß'));
12?>
13===DONE===
14--EXPECTF--
15Notice: iconv_mime_decode(): Detected an illegal character in input string in %s on line %d
16bool(false)
17
18Notice: iconv_mime_decode(): Detected an illegal character in input string in %s on line %d
19bool(false)
20
21Notice: iconv_mime_decode(): Detected an illegal character in input string in %s on line %d
22bool(false)
23===DONE===
24