summaryrefslogtreecommitdiff
path: root/ext/standard/tests/crypt/bcrypt_invalid_algorithm.phpt
blob: b8db266b3da5cd218da288986501bdc35c591ca5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Test BCRYPT with invalid algorithm
--FILE--
<?php
var_dump(crypt("test", "$23$04$1234567890123456789012345"));
var_dump(crypt("test", "$20$04$1234567890123456789012345"));
var_dump(crypt("test", "$2g$04$1234567890123456789012345"));
?>
--EXPECT--
string(2) "*0"
string(2) "*0"
string(2) "*0"