1--TEST-- 2Bug #53377 (imap_mime_header_decode() doesn't ignore \t during long MIME header unfolding) 3--SKIPIF-- 4<?php 5extension_loaded('imap') or die('skip imap extension not available in this build'); 6?> 7--FILE-- 8<?php 9$s = "=?UTF-8?Q?=E2=82=AC?="; 10$header = "$s\n $s\n\t$s"; 11 12var_dump(imap_mime_header_decode($header)); 13?> 14--EXPECT-- 15array(3) { 16 [0]=> 17 object(stdClass)#1 (2) { 18 ["charset"]=> 19 string(5) "UTF-8" 20 ["text"]=> 21 string(3) "€" 22 } 23 [1]=> 24 object(stdClass)#2 (2) { 25 ["charset"]=> 26 string(5) "UTF-8" 27 ["text"]=> 28 string(3) "€" 29 } 30 [2]=> 31 object(stdClass)#3 (2) { 32 ["charset"]=> 33 string(5) "UTF-8" 34 ["text"]=> 35 string(3) "€" 36 } 37} 38