Skip to content

Commit 3010cc4

Browse files
authored
Fix PASSWORD_DEFAULT constant type (#4181)
Also remove personalization while at it
1 parent 7ddc30e commit 3010cc4

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

reference/password/constants.xml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
<varlistentry xml:id="constant.password-default">
178178
<term>
179179
<constant>PASSWORD_DEFAULT</constant>
180-
(<type>mixed</type>)
180+
(<type>string</type>)
181181
</term>
182182
<listitem>
183183
<para>
@@ -186,22 +186,16 @@
186186
algorithms are supported.
187187
</para>
188188
<para>
189-
It is worth noting that over time this constant can (and likely will)
190-
change. Therefore you should be aware that the length of the resulting
191-
hash can change. Therefore, if you use <constant>PASSWORD_DEFAULT</constant>
192-
you should store the resulting hash in a way that can store more than 60
193-
characters (255 is the recommended width).
194-
</para>
195-
<para>
196-
Values for this constant:
189+
It is worth noting that over time this constant can change.
190+
It is thus important to be aware that the length of the resulting
191+
hash can change.
192+
Therefore, when using <constant>PASSWORD_DEFAULT</constant> the resulting
193+
hash must be stored in a way that can store arbitrary hashes,
194+
the recommended width is <literal>255</literal> bytes.
197195
</para>
198-
<itemizedlist>
199-
<listitem>
200-
<simpara>
201-
PHP 5.5.0 - <constant>PASSWORD_BCRYPT</constant>
202-
</simpara>
203-
</listitem>
204-
</itemizedlist>
196+
<simpara>
197+
Currently is an alias for <constant>PASSWORD_BCRYPT</constant>.
198+
</simpara>
205199
</listitem>
206200
</varlistentry>
207201
</variablelist>

0 commit comments

Comments
 (0)