summaryrefslogtreecommitdiff
path: root/ext/iconv/tests/bug52211.phpt
blob: f4fe747cde8e71162d5e75ef01b53e8891be4ece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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)