Skip to content

Commit cd677b3

Browse files
committed
Update bc/fpm
1 parent dd15d44 commit cd677b3

File tree

11 files changed

+41
-20
lines changed

11 files changed

+41
-20
lines changed

reference/bc/book.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 46a9cdd2dbef4ec89bf65fad9930e2feb78bbb98 Maintainer: daijie Status: ready -->
4-
<!-- CREDITS: Luffy -->
3+
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: daijie Status: ready -->
4+
<!-- CREDITS: Luffy, mowangjuanzi -->
55
<book xml:id="book.bc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<?phpdoc extension-membership="bundled" ?>
77
<title>BCMath 任意精度数学</title>
@@ -46,6 +46,7 @@ echo bcsub($num1, $num2, 1); // => '0.0'
4646

4747
&reference.bc.setup;
4848
&reference.bc.reference;
49+
&reference.bc.bcmath.number;
4950

5051
</book>
5152

reference/bc/functions/bcadd.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: jakquan Status: ready -->
3+
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: jakquan Status: ready -->
44
<!-- CREDITS: mowangjuanzi -->
55
<refentry xml:id="function.bcadd" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -115,6 +115,7 @@ echo bcadd($a, $b, 4); // 6.2340
115115
<para>
116116
<simplelist>
117117
<member><function>bcsub</function></member>
118+
<member><methodname>BcMath\Number::add</methodname></member>
118119
</simplelist>
119120
</para>
120121
</refsect1>

reference/bc/functions/bccomp.xml

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: Jerry Status: ready -->
3+
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: Jerry Status: ready -->
44
<!-- CREDITS: mowangjuanzi -->
55
<refentry xml:id="function.bccomp" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
66
<refnamediv>
@@ -74,8 +74,14 @@ echo bccomp('1.00001', '1', 5); // 1
7474
</programlisting>
7575
</example>
7676
</refsect1>
77-
</refentry>
7877

78+
<refsect1 role="seealso">
79+
&reftitle.seealso;
80+
<simplelist>
81+
<member><methodname>BcMath\Number::compare</methodname></member>
82+
</simplelist>
83+
</refsect1>
84+
</refentry>
7985
<!-- Keep this comment at the end of the file
8086
Local variables:
8187
mode: sgml

reference/bc/functions/bcdiv.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: jakquan Status: ready -->
3+
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: jakquan Status: ready -->
44
<!-- CREDITS: mowangjuanzi -->
55
<refentry xml:id="function.bcdiv" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
66
<refnamediv>
@@ -112,6 +112,7 @@ echo bcdiv('105', '6.55957', 3); // 16.007
112112
<member><function>bcdivmod</function></member>
113113
<member><function>bcmod</function></member>
114114
<member><function>bcmul</function></member>
115+
<member><methodname>BcMath\Number::div</methodname></member>
115116
</simplelist>
116117
</para>
117118
</refsect1>

reference/bc/functions/bcmod.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: jakquan Status: ready -->
3+
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: jakquan Status: ready -->
44
<!-- CREDITS: mowangjuanzi -->
55
<refentry xml:id="function.bcmod" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
66
<refnamediv>
@@ -113,6 +113,7 @@ echo bcmod('5.7', '1.3'); // PHP 7.2.0 起是 0.5;之前是 0
113113
<simplelist>
114114
<member><function>bcdiv</function></member>
115115
<member><function>bcdivmod</function></member>
116+
<member><methodname>BcMath\Number::mod</methodname></member>
116117
</simplelist>
117118
</para>
118119
</refsect1>

reference/bc/functions/bcmul.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: jakquan Status: ready -->
3+
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: jakquan Status: ready -->
44
<!-- CREDITS: mowangjuanzi -->
55
<refentry xml:id="function.bcmul" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
66
<refnamediv>
@@ -103,6 +103,7 @@ echo bcmul('5', '2', 2); // 打印“10”而不是“10.00”
103103
<para>
104104
<simplelist>
105105
<member><function>bcdiv</function></member>
106+
<member><methodname>BcMath\Number::mul</methodname></member>
106107
</simplelist>
107108
</para>
108109
</refsect1>

reference/bc/functions/bcpow.xml

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: jakquan Status: ready -->
3+
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: jakquan Status: ready -->
44
<!-- CREDITS: mowangjuanzi -->
55
<refentry xml:id="function.bcpow" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -125,16 +125,14 @@ echo bcpow('4.2', '3', 2); // 74.08
125125
&reftitle.notes;
126126
<note>
127127
<para>
128-
Before PHP 7.3.0 <function>bcpow</function> may return a result with fewer digits after the
129-
decimal point than the <parameter>scale</parameter> parameter would
130-
indicate. This only occurs when the result doesn't require all of the
131-
precision allowed by the <parameter>scale</parameter>. For example:
128+
PHP 7.3.0 之前,<function>bcpow</function> 返回的结果,小数点后的小数位数可能比 <parameter>scale</parameter>
129+
参数指定的少。只有当结果不需要 <parameter>scale</parameter> 允许的所有小数位数时,才会发生这种情况。例如:
132130
<example>
133-
<title><function>bcpow</function> scale example</title>
131+
<title><function>bcpow</function> 小数位数示例</title>
134132
<programlisting role="php">
135133
<![CDATA[
136134
<?php
137-
echo bcpow('5', '2', 2); // prints "25", not "25.00"
135+
echo bcpow('5', '2', 2); // 打印 "25" 而不是 "25.00"
138136
?>
139137
]]>
140138
</programlisting>
@@ -149,6 +147,7 @@ echo bcpow('5', '2', 2); // prints "25", not "25.00"
149147
<simplelist>
150148
<member><function>bcpowmod</function></member>
151149
<member><function>bcsqrt</function></member>
150+
<member><methodname>BcMath\Number::pow</methodname></member>
152151
</simplelist>
153152
</para>
154153
</refsect1>

reference/bc/functions/bcsqrt.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: jakquan Status: ready -->
3+
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: jakquan Status: ready -->
44
<!-- CREDITS: mowangjuanzi -->
55
<refentry xml:id="function.bcsqrt" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -112,6 +112,7 @@ echo bcsqrt('2', 3); // 1.414
112112
<para>
113113
<simplelist>
114114
<member><function>bcpow</function></member>
115+
<member><methodname>BcMath\Number::sqrt</methodname></member>
115116
</simplelist>
116117
</para>
117118
</refsect1>

reference/bc/functions/bcsub.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: jakquan Status: ready -->
3+
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: jakquan Status: ready -->
44
<!-- CREDITS: mowangjuanzi -->
55
<refentry xml:id="function.bcsub" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
66
<refnamediv>
@@ -81,6 +81,7 @@ echo bcsub($a, $b, 4); // -3.7660
8181
<para>
8282
<simplelist>
8383
<member><function>bcadd</function></member>
84+
<member><methodname>BcMath\Number::sub</methodname></member>
8485
</simplelist>
8586
</para>
8687
</refsect1>

reference/bc/ini.xml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 6dfe0767250cdbdf509223f6bc266557b0a3fec9 Maintainer: HonestQiao Status: ready -->
4-
<!-- Reviewed: no Maintainer: HonestQiao -->
3+
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: HonestQiao Status: ready -->
4+
<!-- CREDITS: mowangjuanzi -->
55
<section xml:id="bc.configuration" xmlns="http://docbook.org/ns/docbook">
66
&reftitle.runtime;
77
&extension.runtime;
@@ -44,6 +44,9 @@
4444
所有 bcmath 函数中十进制数字的数目。参见
4545
<function>bcscale</function>。
4646
</para>
47+
<note>
48+
<simpara><classname>BcMath\Number</classname> 不受此设置的影响。</simpara>
49+
</note>
4750
</listitem>
4851
</varlistentry>
4952

reference/fpm/status.xml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 2c4f02dcf9781000405646b9b21f9182aea76496 Maintainer: mowangjuanzi Status: ready -->
3+
<!-- EN-Revision: a4429100780d1d0d6ce204c11ad223f6526990ab Maintainer: mowangjuanzi Status: ready -->
44
<!-- CREDITS: Luffy -->
55
<sect1 xml:id="fpm.status" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<title>状态页面</title>
@@ -165,6 +165,12 @@
165165
达到配置 <literal>request_slowlog_timeout</literal> 的请求总数。
166166
</entry>
167167
</row>
168+
<row>
169+
<entry>memory peak</entry>
170+
<entry>
171+
FPM 启动以来的内存使用峰值。
172+
</entry>
173+
</row>
168174
</tbody>
169175
</tgroup>
170176
</table>

0 commit comments

Comments
 (0)