1--TEST--
2Translit failure
3--SKIPIF--
4<?php
5include('skipif.inc');
6( ICONV_IMPL != "libiconv" ) and die("skip ICONV_IMPL != \"libiconv\"");
7?>
8--INI--
9error_reporting=2039
10--FILE--
11<?php
12/* include('test.inc'); */
13// Should be ok.
14// Content from file is from libiconv testkit. Tested both
15// with a string as an implode, no difference.
16// if at some point internal encoding changes, set correct one
17// in INI section or use file 'TranslitFail1.ISO-8859-1'.
18
19set_time_limit(5);
20/*
21 * The bug (fixed in libiconv 1.8) was confirmed that iconv goes into an
22 * infinite loop when ASCII//TRANSLIT is performed. We should stop it in
23 * some time.
24 */
25
26$test = '�crit par %s.';
27
28var_dump(iconv("ISO-8859-1", "ASCII//TRANSLIT", $test));
29?>
30--EXPECT--
31string(14) "'Ecrit par %s."
32