1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 14:01:01 +02:00
Files
archived-php-src/ext/iconv/tests/bug52211.phpt
2018-10-14 12:07:20 -03:00

18 lines
348 B
PHP

--TEST--
Bug #52211 (iconv() returns part of string on error)
--SKIPIF--
<?php
include('skipif.inc');
?>
--FILE--
<?php
$str = "PATHOLOGIES MÉDICO-CHIRUR. ADUL. PL";
$str_iconv = iconv('CP850', 'ISO-8859-1', $str );
var_dump($str_iconv);
?>
--EXPECTF--
Notice: iconv(): Detected an illegal character in input string in %s on line %d
bool(false)