mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
a555cc0b3d
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
20 lines
519 B
PHP
20 lines
519 B
PHP
--TEST--
|
|
Bug #53891 (iconv_mime_encode() fails to Q-encode UTF-8 string)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('iconv')) die('skip iconv extension not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$preferences = array(
|
|
'scheme' => 'Q',
|
|
'input-charset' => 'utf-8',
|
|
'output-charset' => 'utf-8',
|
|
'line-length' => 74,
|
|
'line-break-chars' => "\r\n",
|
|
);
|
|
var_dump(iconv_mime_encode('subject', "d obeybiubrsfqllpdtpge…", $preferences));
|
|
?>
|
|
--EXPECT--
|
|
string(54) "subject: =?utf-8?Q?d=20obeybiubrsfqllpdtpge=E2=80=A6?="
|