summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/crypt_blowfish_variation2.phpt
blob: 9db9e2142429ed5865aafbca97c4421b85b60bc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Test Blowfish crypt() does not fall back to DES when rounds are not specified,
or Blowfish is not available.
--FILE--
<?php
$crypt = crypt(b'U*U', b'$2a$CCCCCCCCCCCCCCCCCCCCC.E5YPO9kmyuRGyh0XouQYb4YMJKvyOeW');
if ($crypt==='*0') {
    echo "OK\n";
} else {
    echo "Not OK\n";
}
?>
--EXPECT--
OK