mirror of
https://github.com/php/php-src.git
synced 2026-04-22 15:38:49 +02: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
557 B
PHP
20 lines
557 B
PHP
--TEST--
|
|
Bug #66828 (iconv_mime_encode Q-encoding longer than it should be)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('iconv')) die('skip iconv extension not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$preferences = array(
|
|
"input-charset" => "ISO-8859-1",
|
|
"output-charset" => "UTF-8",
|
|
"line-length" => 76,
|
|
"line-break-chars" => "\n",
|
|
"scheme" => "Q"
|
|
);
|
|
var_dump(iconv_mime_encode("Subject", "Test Test Test Test Test Test Test Test", $preferences));
|
|
?>
|
|
--EXPECT--
|
|
string(74) "Subject: =?UTF-8?Q?Test=20Test=20Test=20Test=20Test=20Test=20Test=20Test?="
|