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// Should be ok.
13// Content from file is from libiconv testkit. Tested both
14// with a string as an implode, no difference.
15// if at some point internal encoding changes, set correct one
16// in INI section or use file 'TranslitFail1.ISO-8859-1'.
17
18set_time_limit(5);
19/*
20 * The bug (fixed in libiconv 1.8) was confirmed that iconv goes into an
21 * infinite loop when ASCII//TRANSLIT is performed. We should stop it in
22 * some time.
23 */
24
25$test = '�crit par %s.';
26
27var_dump(iconv("ISO-8859-1", "ASCII//TRANSLIT", $test));
28?>
29--EXPECT--
30string(14) "'Ecrit par %s."
31