Annotation of embedaddon/php/ext/iconv/tests/translit-failure.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Translit failure
3: --SKIPIF--
4: <?php
5: include('skipif.inc');
6: ( ICONV_IMPL != "libiconv" ) and die("skip ICONV_IMPL != \"libiconv\"");
7: ?>
8: --INI--
9: error_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:
19: set_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:
28: var_dump(iconv("ISO-8859-1", "ASCII//TRANSLIT", $test));
29: ?>
30: --EXPECT--
31: string(14) "'Ecrit par %s."
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>