Обновление до английской версии

This commit is contained in:
Sergey Panteleev
2021-07-27 10:11:39 +03:00
parent 2d08c80827
commit ef63e80e62
47 changed files with 133 additions and 139 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: a997a6c1452e55557bbce59701c9d560ae0e2b8a Maintainer: rjhdby Status: ready -->
<!-- EN-Revision: 79c06cc0e7872f1401a4c37dc9298b0bedb0dde4 Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.password-hash" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@ -12,10 +12,10 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type class="union"><type>string</type><type>false</type></type><methodname>password_hash</methodname>
<type>string</type><methodname>password_hash</methodname>
<methodparam><type>string</type><parameter>password</parameter></methodparam>
<methodparam><type>mixed</type><parameter>algo</parameter></methodparam>
<methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam>
<methodparam><type class="union"><type>string</type><type>int</type><type>null</type></type><parameter>algo</parameter></methodparam>
<methodparam choice="opt"><type>array</type><parameter>options</parameter><initializer>[]</initializer></methodparam>
</methodsynopsis>
<para>
<function>password_hash</function> создаёт хеш пароля используя сильный,
@ -79,8 +79,9 @@
</para>
<warning>
<para>
Эта опция была объявлена устаревшей начиная с PHP 7.0.0.
Эта опция объявлена устаревшей.
Рекомендуется использовать автоматически генерируемую соль.
Начиная с PHP 8.0.0 явно заданная соль игнорируется.
</para>
</warning>
</listitem>
@ -178,7 +179,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Возвращает хешированный пароль &return.falseforfailure;.
Возвращает хешированный пароль.
</para>
<para>
Использованный алгоритм, стоимость и соль будут возвращены как часть хеша.
@ -200,6 +201,18 @@
</row>
</thead>
<tbody>
<row>
<entry>8.0.0</entry>
<entry>
<function>password_hash</function> больше не возвращает &false; в случае возникновения ошибки.
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
Параметр <parameter>algo</parameter> теперь допускает значение null.
</entry>
</row>
<row>
<entry>7.4.0</entry>
<entry>