summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/crypt_blowfish_variation2.phpt
blob: f354a8ec77915105724962ed0eaac36c1bb8f2fb (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('U*U', '$2a$CCCCCCCCCCCCCCCCCCCCC.E5YPO9kmyuRGyh0XouQYb4YMJKvyOeW');
if ($crypt==='*0') {
    echo "OK\n";
} else {
    echo "Not OK\n";
}
?>
--EXPECT--
OK