-
Notifications
You must be signed in to change notification settings - Fork 741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PHP 8.3] ValueError
's previous exception is now set in password_hash()
#4235
base: master
Are you sure you want to change the base?
[PHP 8.3] ValueError
's previous exception is now set in password_hash()
#4235
Conversation
<entry> | ||
<function>password_hash</function> now sets the underlying | ||
<classname>\Random\RandomException</classname> as the previous exception when | ||
a <classname>ValueError</classname> is thrown if the salt generation fails. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think both <classname>
be <exceptionname>
. Also:
a <classname>ValueError</classname> is thrown if the salt generation fails. | |
a <classname>ValueError</classname> is thrown because the salt generation fails. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, one other thing is I think you don't need the leading \
on the exception name or it won't get linked up properly. I haven't tested this, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, one other thing is I think you don't need the leading
\
on the exception name or it won't get linked up properly. I haven't tested this, though.
Indeed.
baff101
to
2aed003
Compare
<function>password_hash</function> now sets the underlying | ||
<exceptionname>\Random\RandomException</exceptionname> as the previous exception when | ||
a <exceptionname>ValueError</exceptionname> is thrown because the salt generation fails. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<function>password_hash</function> now sets the underlying | |
<exceptionname>\Random\RandomException</exceptionname> as the previous exception when | |
a <exceptionname>ValueError</exceptionname> is thrown because the salt generation fails. | |
<function>password_hash</function> now sets the underlying | |
<exceptionname>\Random\RandomException</exceptionname> as the previous exception when a | |
<exceptionname>ValueError</exceptionname> is thrown due to a failure in salt generation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description correctly describes the change that happened. I'll defer the English phrasing to other reviewers.
<entry>8.3.0</entry> | ||
<entry> | ||
<function>password_hash</function> now sets the underlying | ||
<exceptionname>\Random\RandomException</exceptionname> as the previous exception when |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should previous
perhaps be a <literal>$previous</previous>
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer <property>Exception::$previous</property>
then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated with your suggestion
2aed003
to
60fc710
Compare
Part of #2796