1--TEST-- 2Translit failure 3--EXTENSIONS-- 4iconv 5--SKIPIF-- 6<?php 7( ICONV_IMPL != "libiconv" ) and die("skip ICONV_IMPL != \"libiconv\""); 8?> 9--INI-- 10error_reporting=2039 11--FILE-- 12<?php 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