xref: /php-src/ext/iconv/tests/bug52211.phpt (revision e9f783fc)
1--TEST--
2Bug #52211 (iconv() returns part of string on error)
3--EXTENSIONS--
4iconv
5--FILE--
6<?php
7
8$str = "PATHOLOGIES MÉDICO-CHIRUR. ADUL. PL";
9$str_iconv = iconv('CP850', 'ISO-8859-1', $str );
10var_dump($str_iconv);
11
12?>
13--EXPECTF--
14Notice: iconv(): Detected an illegal character in input string in %s on line %d
15bool(false)
16