hhvm
hhvm copied to clipboard
mb_convert_encoding bogus warning if last (optional) parameter missing
In HIPHOP this throws a warning:
mb_convert_encoding("", "UTF-8");
This does not: mb_convert_encoding("", "UTF-8", "auto");
Neither throws a warning in php, and the 3rd parameter is an optional parameter.
http://php.net/manual/en/function.mb-convert-encoding.php
This was fixed at some point in the past year.