Commit 9696705fb13 for php
commit 9696705fb135e28aaa7bb2bf650b3e8ac1fa1a8e
Author: Tim Düsterhus <tim@bastelstu.be>
Date: Fri Oct 2 20:31:29 2026 +0200
standard: Define `PASSWORD_DEFAULT` in terms of `PASSWORD_BCRYPT` (#24078)
Instead of copying the constant’s value, we can just refer to the constant,
making the stub more self-explanatory.
diff --git a/ext/standard/password.stub.php b/ext/standard/password.stub.php
index b4758ef54b1..98c78032c9f 100644
--- a/ext/standard/password.stub.php
+++ b/ext/standard/password.stub.php
@@ -2,7 +2,6 @@
/** @generate-class-entries */
-const PASSWORD_DEFAULT = "2y";
const PASSWORD_BCRYPT = "2y";
/**
* @var int
@@ -30,3 +29,6 @@
*/
const PASSWORD_ARGON2_DEFAULT_THREADS = UNKNOWN;
#endif
+
+/** @var string */
+const PASSWORD_DEFAULT = PASSWORD_BCRYPT;
diff --git a/ext/standard/password_arginfo.h b/ext/standard/password_arginfo.h
index 2a7b19f6108..bbfe8d16aa3 100644
Binary files a/ext/standard/password_arginfo.h and b/ext/standard/password_arginfo.h differ