php-src/ext/standard/tests/strings/bug51059.phpt

12 lines
183 B
Plaintext
Raw Normal View History

2010-02-20 19:13:09 +00:00
--TEST--
Bug #51059 crypt() segfaults on certain salts
--FILE--
<?php
$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