From 2aed003bd88ef7e2043b0f6bf566cc632340d837 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Tue, 3 Dec 2024 17:16:29 +0100 Subject: [PATCH] [PHP 8.3] `ValueError`'s previous exception is now set in `password_hash()` --- reference/password/functions/password-hash.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reference/password/functions/password-hash.xml b/reference/password/functions/password-hash.xml index 2f4a64629c80..b95e821d37b0 100644 --- a/reference/password/functions/password-hash.xml +++ b/reference/password/functions/password-hash.xml @@ -187,6 +187,14 @@ + + 8.3.0 + + password_hash now sets the underlying + \Random\RandomException as the previous exception when + a ValueError is thrown because the salt generation fails. + + 8.0.0