svn: /phpdoc/zh/trunk/reference/strings/functions/ md5.xml print.xml sha1.xml sscanf.xml stristr.xml
| From: | Dai Jie | Date: | Thu, 05 Oct 2017 09:20:49 +0000 |
| Subject: | svn: /phpdoc/zh/trunk/reference/strings/functions/ md5.xml print.xml sha1.xml sscanf.xml stristr.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-5017@lists.php.net to get a copy of this message | ||
daijie Thu, 05 Oct 2017 09:20:49 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=343190
Log:
Sync with EN.
Changed paths:
U phpdoc/zh/trunk/reference/strings/functions/md5.xml
U phpdoc/zh/trunk/reference/strings/functions/print.xml
U phpdoc/zh/trunk/reference/strings/functions/sha1.xml
U phpdoc/zh/trunk/reference/strings/functions/sscanf.xml
U phpdoc/zh/trunk/reference/strings/functions/stristr.xml
Modified: phpdoc/zh/trunk/reference/strings/functions/md5.xml
===================================================================
--- phpdoc/zh/trunk/reference/strings/functions/md5.xml 2017-10-05 09:13:50 UTC (rev 343189)
+++ phpdoc/zh/trunk/reference/strings/functions/md5.xml 2017-10-05 09:20:49 UTC (rev 343190)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 334621 Maintainer: HonestQiao Status: ready -->
+<!-- EN-Revision: 342065 Maintainer: HonestQiao Status: ready -->
<!-- Reviewed: no Maintainer: HonestQiao -->
<refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook"
xml:id="function.md5">
<refnamediv>
@@ -8,6 +8,10 @@
<refpurpose>计算字符串的 MD5 散列值</refpurpose>
</refnamediv>
+ <refsynopsisdiv>
+ &warn.passwordhashing;
+ </refsynopsisdiv>
+
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
@@ -71,11 +75,6 @@
</para>
</refsect1>
- <refsect1 role="notes">
- &reftitle.notes;
- ¬e.passwordhashing;
- </refsect1>
-
<refsect1 role="seealso">
&reftitle.seealso;
<para>
Modified: phpdoc/zh/trunk/reference/strings/functions/print.xml
===================================================================
--- phpdoc/zh/trunk/reference/strings/functions/print.xml 2017-10-05 09:13:50 UTC (rev 343189)
+++ phpdoc/zh/trunk/reference/strings/functions/print.xml 2017-10-05 09:20:49 UTC (rev 343190)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 339895 Maintainer: daijie Status: ready -->
+<!-- EN-Revision: 342214 Maintainer: daijie Status: ready -->
<refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook"
xml:id="function.print">
<refnamediv>
<refname>print</refname>
@@ -20,8 +20,8 @@
<function>print</function>
实际上不是函数(而是语言结构),所以可以不用圆括号包围参数列表。
</para>
<para>
- 和 <literal>echo</literal> 的唯一区别:
- <literal>print</literal> 仅支持一个参数。
+ 和 <literal>echo</literal> 最主要的区别:
+ <literal>print</literal> 仅支持一个参数,并总是返回 1。
</para>
</refsect1>
Modified: phpdoc/zh/trunk/reference/strings/functions/sha1.xml
===================================================================
--- phpdoc/zh/trunk/reference/strings/functions/sha1.xml 2017-10-05 09:13:50 UTC (rev 343189)
+++ phpdoc/zh/trunk/reference/strings/functions/sha1.xml 2017-10-05 09:20:49 UTC (rev 343190)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 317502 Maintainer: HonestQiao Status: ready -->
+<!-- EN-Revision: 342065 Maintainer: HonestQiao Status: ready -->
<!-- Reviewed: no Maintainer: HonestQiao -->
<refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook"
xml:id="function.sha1">
<refnamediv>
@@ -8,6 +8,10 @@
<refpurpose>计算字符串的 sha1 散列值</refpurpose>
</refnamediv>
+ <refsynopsisdiv>
+ &warn.passwordhashing;
+ </refsynopsisdiv>
+
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
@@ -36,7 +40,9 @@
<term><parameter>raw_output</parameter></term>
<listitem>
<para>
- 如果可选的 <parameter>raw_output</parameter> 参数被设置为
&true;,那么 sha1 摘要将以 20
字符长度的原始格式返回,否则返回值是一个 40 字符长度的十六进制数字。
+ 如果可选的 <parameter>raw_output</parameter> 参数被设置为
&true;,
+ 那么 sha1 摘要将以 20 字符长度的原始格式返回,
+ 否则返回值是一个 40 字符长度的十六进制数字。
</para>
</listitem>
</varlistentry>
@@ -51,30 +57,6 @@
</para>
</refsect1>
- <refsect1 role="changelog">
- &reftitle.changelog;
- <para>
- <informaltable>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>&Version;</entry>
- <entry>&Description;</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>5.0.0</entry>
- <entry>
- 新增 <parameter>raw_output</parameter> 参数。
- </entry>
- </row>
- </tbody>
- </tgroup>
- </informaltable>
- </para>
- </refsect1>
-
<refsect1 role="examples">
&reftitle.examples;
<para>
@@ -95,11 +77,6 @@
</para>
</refsect1>
- <refsect1 role="notes">
- &reftitle.notes;
- ¬e.passwordhashing;
- </refsect1>
-
<refsect1 role="seealso">
&reftitle.seealso;
<para>
@@ -108,6 +85,8 @@
<member><function>crc32</function></member>
<member><function>md5</function></member>
<member><function>hash</function></member>
+ <member><function>crypt</function></member>
+ <member><function>password_hash</function></member>
</simplelist>
</para>
</refsect1>
Modified: phpdoc/zh/trunk/reference/strings/functions/sscanf.xml
===================================================================
--- phpdoc/zh/trunk/reference/strings/functions/sscanf.xml 2017-10-05 09:13:50 UTC (rev 343189)
+++ phpdoc/zh/trunk/reference/strings/functions/sscanf.xml 2017-10-05 09:20:49 UTC (rev 343190)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 324696 Maintainer: daijie Status: ready -->
+<!-- EN-Revision: 342425 Maintainer: daijie Status: ready -->
<!-- Reviewed: no -->
<refentry xmlns="http://docbook.org/ns/docbook"
xml:id="function.sscanf" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -61,8 +61,11 @@
<literal>i</literal> stands for integer with base detection.
</member>
<member>
- <literal>n</literal> stands for number of characters processed so far.
+ <literal>n</literal> 代表目前已经处理的字符数。
</member>
+ <member>
+ <literal>s</literal> 遇到任意空格字符时停止读取。
+ </member>
</simplelist>
</para>
</listitem>
Modified: phpdoc/zh/trunk/reference/strings/functions/stristr.xml
===================================================================
--- phpdoc/zh/trunk/reference/strings/functions/stristr.xml 2017-10-05 09:13:50 UTC (rev 343189)
+++ phpdoc/zh/trunk/reference/strings/functions/stristr.xml 2017-10-05 09:20:49 UTC (rev 343190)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 323218 Maintainer: daijie Status: ready -->
+<!-- EN-Revision: 343177 Maintainer: daijie Status: ready -->
<refentry xmlns="http://docbook.org/ns/docbook"
xml:id="function.stristr">
<refnamediv>
<refname>stristr</refname>
@@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>string</type><methodname>stristr</methodname>
+ <type>mixed</type><methodname>stristr</methodname>
<methodparam><type>string</type><parameter>haystack</parameter></methodparam>
<methodparam><type>mixed</type><parameter>needle</parameter></methodparam>
<methodparam
choice="opt"><type>bool</type><parameter>before_needle</parameter><initializer>false</initializer></methodparam>