mirror of
https://github.com/php/php-src.git
synced 2024-10-19 23:44:13 +00:00
29 lines
528 B
PHP
29 lines
528 B
PHP
--TEST--
|
||
Translit UTF-8 quotes
|
||
--SKIPIF--
|
||
<?php
|
||
include('skipif.inc');
|
||
( ICONV_IMPL != "libiconv" ) and die("skip ICONV_IMPL != \"libiconv\"");
|
||
?>
|
||
--INI--
|
||
magic_quotes_runtime=0
|
||
error_reporting=2047
|
||
--FILE--
|
||
<?php // vim600: syn=php
|
||
/* include('test.inc'); */
|
||
//error_reporting(E_ALL);
|
||
$utf = implode('', file(dirname(__FILE__).'/Quotes.UTF-8'));
|
||
|
||
print(iconv("UTF-8", "ISO-8859-1//TRANSLIT", $utf));
|
||
print(iconv("UTF-8", "ASCII//TRANSLIT", $utf));
|
||
?>
|
||
--EXPECT--
|
||
"Hello"
|
||
`Hello´
|
||
"Hello"
|
||
`Hello´
|
||
"Hello"
|
||
'Hello'
|
||
"Hello"
|
||
'Hello'
|