PHP warning

chr() expects parameter 1 to be int, string given

/mnt/data/shnoulle/nginx/www/3LTS/application/third_party/tcpdf/include/tcpdf_fonts.php(1671)

1659      * Returns the unicode caracter specified by the value
1660      * @param $c (int) UTF-8 value
1661      * @param $unicode (boolean) True if we are in unicode mode, false otherwise.
1662      * @return Returns the specified character.
1663      * @since 2.3.000 (2008-03-05)
1664      * @public static
1665      */
1666     public static function unichr($c, $unicode=true) {
1667         if (!$unicode) {
1668             return chr($c);
1669         } elseif ($c <= 0x7F) {
1670             // one byte
1671             return chr($c);
1672         } elseif ($c <= 0x7FF) {
1673             // two bytes
1674             return chr(0xC0 | $c >> 6).chr(0x80 | $c & 0x3F);
1675         } elseif ($c <= 0xFFFF) {
1676             // three bytes
1677             return chr(0xE0 | $c >> 12).chr(0x80 | $c >> 6 & 0x3F).chr(0x80 | $c & 0x3F);
1678         } elseif ($c <= 0x10FFFF) {
1679             // four bytes
1680             return chr(0xF0 | $c >> 18).chr(0x80 | $c >> 12 & 0x3F).chr(0x80 | $c >> 6 & 0x3F).chr(0x80 | $c & 0x3F);
1681         } else {
1682             return '';
1683         }

Stack Trace

#0
+
 /mnt/data/shnoulle/nginx/www/3LTS/application/third_party/tcpdf/include/tcpdf_fonts.php(1671): chr("")
1666     public static function unichr($c, $unicode=true) {
1667         if (!$unicode) {
1668             return chr($c);
1669         } elseif ($c <= 0x7F) {
1670             // one byte
1671             return chr($c);
1672         } elseif ($c <= 0x7FF) {
1673             // two bytes
1674             return chr(0xC0 | $c >> 6).chr(0x80 | $c & 0x3F);
1675         } elseif ($c <= 0xFFFF) {
1676             // three bytes
#1
+
 /mnt/data/shnoulle/nginx/www/3LTS/application/third_party/tcpdf/include/tcpdf_fonts.php(1803): TCPDF_FONTS::unichr("", true)
1798         if (strlen($end) == 0) {
1799             $end = count($strarr);
1800         }
1801         $string = '';
1802         for ($i = $start; $i < $end; ++$i) {
1803             $string .= self::unichr($strarr[$i], $unicode);
1804         }
1805         return $string;
1806     }
1807 
1808     /**
#2
+
 /mnt/data/shnoulle/nginx/www/3LTS/application/third_party/tcpdf/include/tcpdf_fonts.php(2099): TCPDF_FONTS::UTF8ArrSubString(array(""), 0, 1, true)
2094         $pel = 0;
2095         // max level
2096         $maxlevel = 0;
2097         if (TCPDF_STATIC::empty_string($str)) {
2098             // create string from array
2099             $str = self::UTF8ArrSubString($ta, '', '', $isunicode);
2100         }
2101         // check if string contains arabic text
2102         if (preg_match(TCPDF_FONT_DATA::$uni_RE_PATTERN_ARABIC, $str)) {
2103             $arabic = true;
2104         } else {
2020-11-27 11:24:36 nginx/1.18.0 Yii Framework/1.1.22-dev