]> granicus.if.org Git - php/commitdiff
Bug fixes in light of failing bcrypt tests
authorLeigh <leight@gmail.com>
Tue, 7 Oct 2014 11:27:57 +0000 (12:27 +0100)
committerStanislav Malyshev <stas@php.net>
Mon, 1 Dec 2014 05:06:39 +0000 (21:06 -0800)
Conflicts:
ext/standard/crypt.c

ext/standard/crypt.c
ext/standard/tests/strings/crypt_blowfish.phpt

index b0d17153f21acc1c399b49f0de4dbd5d7993e9f6..f884397742c7b8119e327aebd16f8c149f7b2eda 100644 (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' &&
index 2bb2b5ff34ebb7d0daa7e96ddb776a2bf14ad195..0bf0d1949e1a9ebcd40eca676a198b4263870494 100644 (file)
@@ -105,3 +105,6 @@ foreach($tests2 as $test) {
 29. OK
 30. OK
 31. OK
+32. OK
+33. OK
+34. OK