summaryrefslogtreecommitdiffstats
path: root/php-8.0.7-argon2.patch
blob: 88018deed2a4f87671615aa7d7b23e18f0941d3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/ext/sodium/sodium_pwhash.c b/ext/sodium/sodium_pwhash.c
index e58a9514cc..86cc06cd91 100644
--- a/ext/sodium/sodium_pwhash.c
+++ b/ext/sodium/sodium_pwhash.c
@@ -62,10 +62,6 @@ static inline int get_options(zend_array *options, size_t *memlimit, size_t *ops
 			return FAILURE;
 		}
 	}
-	if ((opt = zend_hash_str_find(options, "threads", strlen("threads"))) && (zval_get_long(opt) != 1)) {
-		zend_value_error("A thread value other than 1 is not supported by this implementation");
-		return FAILURE;
-	}
 	return SUCCESS;
 }