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