bug51059.phpt   [plain text]


--TEST--
Bug #51059 crypt() segfaults on certain salts
--FILE--
<?php
$res = crypt(b'a', b'_');
if ($res === b'*0' || $res === b'*1') echo 'OK';
else echo 'Not OK';

?>
--EXPECT--
OK