mirror of
https://github.com/php/php-src.git
synced 2026-04-26 01:18:19 +02:00
e9f783fcdd
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
18 lines
483 B
PHP
18 lines
483 B
PHP
--TEST--
|
|
Bug #66828 (iconv_mime_encode Q-encoding longer than it should be)
|
|
--EXTENSIONS--
|
|
iconv
|
|
--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?="
|