X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsymfony%2Fpolyfill-iconv%2FIconv.php;h=77e7ca056bfafef8f42ef6ba1d56785d9ca3e955;hp=b9abecbe8ced3f76a51b2cd905df8a3851279fb0;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/vendor/symfony/polyfill-iconv/Iconv.php b/vendor/symfony/polyfill-iconv/Iconv.php index b9abecbe8..77e7ca056 100644 --- a/vendor/symfony/polyfill-iconv/Iconv.php +++ b/vendor/symfony/polyfill-iconv/Iconv.php @@ -174,8 +174,8 @@ final class Iconv } } while ($loop); - if (isset(self::$alias[ $inCharset])) { - $inCharset = self::$alias[ $inCharset]; + if (isset(self::$alias[$inCharset])) { + $inCharset = self::$alias[$inCharset]; } if (isset(self::$alias[$outCharset])) { $outCharset = self::$alias[$outCharset]; @@ -292,7 +292,7 @@ final class Iconv if ((ICONV_MIME_DECODE_CONTINUE_ON_ERROR & $mode) && 'utf-8' !== $c && !isset(self::$alias[$c]) - && !self::loadMap('from.', $c, $d)) { + && !self::loadMap('from.', $c, $d)) { $d = false; } elseif ('B' === strtoupper($str[$i + 1])) { $d = base64_decode($str[$i + 2]); @@ -433,7 +433,7 @@ final class Iconv { static $hasXml = null; if (null === $hasXml) { - $hasXml = extension_loaded('xml'); + $hasXml = \extension_loaded('xml'); } if ($hasXml) { @@ -695,6 +695,10 @@ final class Iconv } else { return false; } + } elseif ($ignore) { + continue; + } else { + return false; } $str = $uchr.substr($str, $i);