This fixes a bug in PHP/HH's crypt_blowfish implementation that can cause a short...
[hiphop-php.git] / hphp / test / slow / ext_string / t143363292.php
blobe07709cbbef85e223c888d56340c761458b887c5
1 <?hh
3 <<__EntryPoint>> function main(): void {
4 for ($i = 0; $i < 23; $i++) {
5 $salt = '$2y$04$' . str_repeat('0', $i) . '$';
6 $result = crypt("foo", $salt);
7 var_dump($salt);
8 var_dump($result);
9 var_dump($result === $salt);