Bug fixes in light of failing bcrypt tests

Conflicts:
	ext/standard/crypt.c
This commit is contained in:
Leigh 2014-10-07 12:27:57 +01:00 committed by Stanislav Malyshev
parent 2d9d10fbbf
commit 7e870c596d
2 changed files with 3 additions and 1 deletions

View File

@ -242,7 +242,6 @@ PHP_FUNCTION(crypt)
} else if (
salt[0] == '$' &&
salt[1] == '2' &&
salt[2] >= 'a' && salt[2] <= 'z' &&
salt[3] == '$' &&
salt[4] >= '0' && salt[4] <= '3' &&
salt[5] >= '0' && salt[5] <= '9' &&

View File

@ -105,3 +105,6 @@ foreach($tests2 as $test) {
29. OK
30. OK
31. OK
32. OK
33. OK
34. OK