iliaa Thu, 25 Nov 2010 21:38:06 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=305759
Log: Fixed bug #53304 (quot_print_decode does not handle lower-case hex digits) Bug: http://bugs.php.net/53304 (Assigned) iconv_mime_docode() doesn't handle lowercase hex digits Changed paths: U php/php-src/branches/PHP_5_3/NEWS A php/php-src/branches/PHP_5_3/ext/iconv/tests/bug53304.phpt U php/php-src/branches/PHP_5_3/ext/standard/quot_print.c A php/php-src/trunk/ext/iconv/tests/bug53304.phpt U php/php-src/trunk/ext/standard/quot_print.c Modified: php/php-src/branches/PHP_5_3/NEWS =================================================================== --- php/php-src/branches/PHP_5_3/NEWS 2010-11-25 20:50:30 UTC (rev 305758) +++ php/php-src/branches/PHP_5_3/NEWS 2010-11-25 21:38:06 UTC (rev 305759) @@ -7,6 +7,8 @@ - Core: . Fixed extract() to do not overwrite $GLOBALS and $this when using EXTR_OVERWRITE. (jorto at redhat dot com) + . Fixed bug #53304 (quot_print_decode does not handle lower-case hex digits). + (Ilia, daniel dot mueller at inexio dot net) . Fixed bug #47168 (printf of floating point variable prints maximum of 40 decimal places). (Ilia) . Fixed bug #46587 (mt_rand() does not check that max is greater than min). Added: php/php-src/branches/PHP_5_3/ext/iconv/tests/bug53304.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/iconv/tests/bug53304.phpt (rev 0) +++ php/php-src/branches/PHP_5_3/ext/iconv/tests/bug53304.phpt 2010-11-25 21:38:06 UTC (rev 305759) @@ -0,0 +1,13 @@ +--TEST-- +Bug #53304 (quot_print_decode does not handle lower-case hex digits) +--SKIPIF-- +<?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?> +--FILE-- +<?php +echo iconv_mime_decode('=?utf-8?Q?Nachricht_=c3=bcber_Kontaktformular_www.inexio.net?=', 0, 'UTF-8') . "\n"; +echo iconv_mime_decode('=?utf-8?Q?Nachricht_=C3=BCber_Kontaktformular_www.inexio.net?=', 0, 'UTF-8') . "\n"; + +?> +--EXPECT-- +Nachricht über Kontaktformular www.inexio.net +Nachricht über Kontaktformular www.inexio.net Modified: php/php-src/branches/PHP_5_3/ext/standard/quot_print.c =================================================================== --- php/php-src/branches/PHP_5_3/ext/standard/quot_print.c 2010-11-25 20:50:30 UTC (rev 305758) +++ php/php-src/branches/PHP_5_3/ext/standard/quot_print.c 2010-11-25 21:38:06 UTC (rev 305759) @@ -68,6 +68,7 @@ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 64, 64, 64, 64, 64, 64, 64, 10, 11, 12, 13, 14, 15, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, + 64, 10, 11, 12, 13, 14, 15, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, @@ -76,7 +77,6 @@ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64 }; Added: php/php-src/trunk/ext/iconv/tests/bug53304.phpt =================================================================== --- php/php-src/trunk/ext/iconv/tests/bug53304.phpt (rev 0) +++ php/php-src/trunk/ext/iconv/tests/bug53304.phpt 2010-11-25 21:38:06 UTC (rev 305759) @@ -0,0 +1,13 @@ +--TEST-- +Bug #53304 (quot_print_decode does not handle lower-case hex digits) +--SKIPIF-- +<?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?> +--FILE-- +<?php +echo iconv_mime_decode('=?utf-8?Q?Nachricht_=c3=bcber_Kontaktformular_www.inexio.net?=', 0, 'UTF-8') . "\n"; +echo iconv_mime_decode('=?utf-8?Q?Nachricht_=C3=BCber_Kontaktformular_www.inexio.net?=', 0, 'UTF-8') . "\n"; + +?> +--EXPECT-- +Nachricht über Kontaktformular www.inexio.net +Nachricht über Kontaktformular www.inexio.net Modified: php/php-src/trunk/ext/standard/quot_print.c =================================================================== --- php/php-src/trunk/ext/standard/quot_print.c 2010-11-25 20:50:30 UTC (rev 305758) +++ php/php-src/trunk/ext/standard/quot_print.c 2010-11-25 21:38:06 UTC (rev 305759) @@ -68,6 +68,7 @@ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 64, 64, 64, 64, 64, 64, 64, 10, 11, 12, 13, 14, 15, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, + 64, 10, 11, 12, 13, 14, 15, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, @@ -76,7 +77,6 @@ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64 };
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php