summaryrefslogtreecommitdiffstats
path: root/php-8.0.7-argon2.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-06-15 17:03:39 +0200
committerRemi Collet <remi@remirepo.net>2021-06-15 17:03:39 +0200
commitce3d53d54117a5799ac7e673fe5449daafbea682 (patch)
tree0337576fd1f2f1d36a70d4afd7de594b47039739 /php-8.0.7-argon2.patch
parent0ac8d0e2f130b1f0de28c608caad78f2c22a2243 (diff)
update to 8.0.8RC1
ignore unsupported "threads" option on password_hash
Diffstat (limited to 'php-8.0.7-argon2.patch')
-rw-r--r--php-8.0.7-argon2.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/php-8.0.7-argon2.patch b/php-8.0.7-argon2.patch
new file mode 100644
index 0000000..88018de
--- /dev/null
+++ b/php-8.0.7-argon2.patch
@@ -0,0 +1,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;
+ }
+