-
Notifications
You must be signed in to change notification settings - Fork 809
password_hash: Update for PHP 8.4 #4455
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
Conversation
This updates the `password_hash()` documentation for the updated default cost of bcrypt in PHP 8.4. It also performs some general cleanup.
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.
LGTM, I have one remark, I'm not sure if we have a real guideline about that but it's what I'm used to.
If omitted, a default value of <literal>10</literal> will be used. This is a good | ||
baseline cost, but you may want to consider increasing it depending on your hardware. | ||
If omitted, a default value of <literal>12</literal> will be used. This is a good | ||
baseline cost, but you may want to consider adjusting it depending on your hardware. |
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.
Maybe at the same time remove personalization (i.e. usage of "you")?
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.
It's all over the document. I'll do this in a follow-up.
I think constants.xml needs to be updated too? doc-en/reference/password/constants.xml Line 46 in 51ea49d
|
Good find, thanks. Fixed in 66aff41 |
* password_hash: Update for PHP 8.4 * password_*(): Sync with `password_hash()` * `password_hash()` のサンプルコードも原文の更新に追随 --------- Co-authored-by: 武田 憲太郎 <[email protected]>
This updates the
password_hash()
documentation for the updated default cost of bcrypt in PHP 8.4. It also performs some general cleanup.