PAL.C.T MINI SHELL
--TEST--
Test error operation of random_bytes()
--FILE--
<?php
//-=-=-=-
try {
$bytes = random_bytes();
} catch (TypeError $e) {
echo $e->getMessage().PHP_EOL;
}
try {
$bytes = random_bytes(0);
} catch (Error $e) {
echo $e->getMessage().PHP_EOL;
}
?>
--EXPECT--
random_bytes() expects exactly 1 parameter, 0 given
Length must be greater than 0
�
y���~�or�5�J�={��E��e�u磝Qk��ᯘG{�?���+�]������ן�?w�M3X^��歌>{�7پ�K�>�o��n�\����j�y��R���g/�=��f�O��r�o��NV�v��~�Y+��NG�u���Ý����HW��y�w�[eQ�ʨ�S�b��>������>�}G�mx[o[<��{���Ϯ_��qF���vMIEND�B`�