hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

mb_convert_encoding bogus warning if last (optional) parameter missing

Open joelastpass opened this issue 15 years ago • 1 comments

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

joelastpass avatar Apr 22 '11 05:04 joelastpass

This was fixed at some point in the past year.

sgolemon avatar Aug 07 '12 20:08 sgolemon