From 953b10c59cf6bc816fa0fea7a7101e72208c8971 Mon Sep 17 00:00:00 2001 From: Matteo Beccati Date: Wed, 31 Aug 2011 22:38:20 +0000 Subject: [PATCH] Fixed test. Apparently it was already fixed on PHP_5_3 98% of the cases and the fix wasn't ported to trunk/PHP_5_4. However the very same test was failing on my FreeBSD 6.2 box, that appears to also decode the "ks_c_5601-1987" parts, so I've made the test more generic. --- ext/iconv/tests/bug52941.phpt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ext/iconv/tests/bug52941.phpt b/ext/iconv/tests/bug52941.phpt index 753c9ada14..b336d40c4b 100644 --- a/ext/iconv/tests/bug52941.phpt +++ b/ext/iconv/tests/bug52941.phpt @@ -28,14 +28,14 @@ var_dump($decoded['X-Foo']); var_dump($decoded['X-Bar']); var_dump($decoded['To']); ?> ---EXPECT-- +--EXPECTF-- string(17) "" -string(29) "=?ks_c_5601-1987?B?UkU6odk=?=" -string(33) "=?ks_c_5601-1987?B?UkU6odk=?= Foo" -string(32) "=?ks_c_5601-1987?B?UkU6odk=?=Foo" +string(%d) "%s" +string(%d) "%sFoo" +string(%d) "%sFoo" string(18) "" string(17) "" -string(29) "=?ks_c_5601-1987?B?UkU6odk=?=" -string(33) "=?ks_c_5601-1987?B?UkU6odk=?= Foo" -string(32) "=?ks_c_5601-1987?B?UkU6odk=?=Foo" +string(%d) "%s" +string(%d) "%sFoo" +string(%d) "%sFoo" string(18) "" -- 2.40.0