hirokawa                                 Sat, 06 Aug 2011 12:19:33 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=314370

Log:
MFH: fixed encoding conversion when http_input=auto.

Changed paths:
    U   php/php-src/branches/PHP_5_4/ext/mbstring/mb_gpc.c

Modified: php/php-src/branches/PHP_5_4/ext/mbstring/mb_gpc.c
===================================================================
--- php/php-src/branches/PHP_5_4/ext/mbstring/mb_gpc.c  2011-08-06 12:19:16 UTC 
(rev 314369)
+++ php/php-src/branches/PHP_5_4/ext/mbstring/mb_gpc.c  2011-08-06 12:19:33 UTC 
(rev 314370)
@@ -264,8 +264,8 @@
        } else {
                /* auto detect */
                from_encoding = NULL;
-               identd = mbfl_encoding_detector_new((enum mbfl_no_encoding 
*)info->from_encodings, info->num_from_encodings, MBSTRG(strict_detection));
-               if (identd) {
+               identd = mbfl_encoding_detector_new2(info->from_encodings, 
info->num_from_encodings, MBSTRG(strict_detection));
+               if (identd != NULL) {
                        n = 0;
                        while (n < num) {
                                string.val = (unsigned char *)val_list[n];

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to