kphp
kphp copied to clipboard
Unpack `H*` with an empty string produces warning: Not enough data to unpack with format "H*"
Following code:
var_export(unpack('H*', ''));
In PHP 7.4 it returns an empty string which is OK:
array (
1 => '',
)
In KPHP it returns false and produces warning:
Warning: Not enough data to unpack with format "H*"