2010-02-19 21:08:35 +00:00
|
|
|
--TEST--
|
|
|
|
Bug #51059 crypt() segfaults on certain salts
|
|
|
|
--FILE--
|
|
|
|
<?php
|
2010-02-23 20:24:51 +00:00
|
|
|
$res = crypt(b'a', b'_');
|
|
|
|
if ($res === b'*0' || $res === b'*1') echo 'OK';
|
2010-02-19 21:08:35 +00:00
|
|
|
else echo 'Not OK';
|
|
|
|
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
OK
|