SKevo LGTM.
SKevo
What if you go to /app/vendor/jfcherng/php-mb-string/src/MbString.php
line 337 and do
// just use any string to get the endian header, here we use "A"
$tmp = \iconv('ISO-8859-1', 'UTF-32', 'A');
// some distributions like "php alpine" docker image won't generate the header
- return \strlen($tmp) > 4 ? \substr($tmp, 0, 4) : '';
+ return $tmp && \strlen($tmp) > 4 ? \substr($tmp, 0, 4) : '';
Dumb qustions:
- Do you have
php-iconv
extension installed?
- Are you using a dockerfile or docker image which I can use for reproduction?