Skip to content

Commit

Permalink
Update bc/fpm
Browse files Browse the repository at this point in the history
  • Loading branch information
mowangjuanzi committed Jan 17, 2025
1 parent dd15d44 commit cd677b3
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 20 deletions.
5 changes: 3 additions & 2 deletions reference/bc/book.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 46a9cdd2dbef4ec89bf65fad9930e2feb78bbb98 Maintainer: daijie Status: ready -->
<!-- CREDITS: Luffy -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: daijie Status: ready -->
<!-- CREDITS: Luffy, mowangjuanzi -->
<book xml:id="book.bc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<?phpdoc extension-membership="bundled" ?>
<title>BCMath 任意精度数学</title>
Expand Down Expand Up @@ -46,6 +46,7 @@ echo bcsub($num1, $num2, 1); // => '0.0'

&reference.bc.setup;
&reference.bc.reference;
&reference.bc.bcmath.number;

</book>

Expand Down
3 changes: 2 additions & 1 deletion reference/bc/functions/bcadd.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: jakquan Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: jakquan Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<refentry xml:id="function.bcadd" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -115,6 +115,7 @@ echo bcadd($a, $b, 4); // 6.2340
<para>
<simplelist>
<member><function>bcsub</function></member>
<member><methodname>BcMath\Number::add</methodname></member>
</simplelist>
</para>
</refsect1>
Expand Down
10 changes: 8 additions & 2 deletions reference/bc/functions/bccomp.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: Jerry Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: Jerry Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<refentry xml:id="function.bccomp" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
<refnamediv>
Expand Down Expand Up @@ -74,8 +74,14 @@ echo bccomp('1.00001', '1', 5); // 1
</programlisting>
</example>
</refsect1>
</refentry>

<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member><methodname>BcMath\Number::compare</methodname></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Expand Down
3 changes: 2 additions & 1 deletion reference/bc/functions/bcdiv.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: jakquan Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: jakquan Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<refentry xml:id="function.bcdiv" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
<refnamediv>
Expand Down Expand Up @@ -112,6 +112,7 @@ echo bcdiv('105', '6.55957', 3); // 16.007
<member><function>bcdivmod</function></member>
<member><function>bcmod</function></member>
<member><function>bcmul</function></member>
<member><methodname>BcMath\Number::div</methodname></member>
</simplelist>
</para>
</refsect1>
Expand Down
3 changes: 2 additions & 1 deletion reference/bc/functions/bcmod.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: jakquan Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: jakquan Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<refentry xml:id="function.bcmod" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
<refnamediv>
Expand Down Expand Up @@ -113,6 +113,7 @@ echo bcmod('5.7', '1.3'); // PHP 7.2.0 起是 0.5;之前是 0
<simplelist>
<member><function>bcdiv</function></member>
<member><function>bcdivmod</function></member>
<member><methodname>BcMath\Number::mod</methodname></member>
</simplelist>
</para>
</refsect1>
Expand Down
3 changes: 2 additions & 1 deletion reference/bc/functions/bcmul.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: jakquan Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: jakquan Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<refentry xml:id="function.bcmul" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
<refnamediv>
Expand Down Expand Up @@ -103,6 +103,7 @@ echo bcmul('5', '2', 2); // 打印“10”而不是“10.00”
<para>
<simplelist>
<member><function>bcdiv</function></member>
<member><methodname>BcMath\Number::mul</methodname></member>
</simplelist>
</para>
</refsect1>
Expand Down
13 changes: 6 additions & 7 deletions reference/bc/functions/bcpow.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: jakquan Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: jakquan Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<refentry xml:id="function.bcpow" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -125,16 +125,14 @@ echo bcpow('4.2', '3', 2); // 74.08
&reftitle.notes;
<note>
<para>
Before PHP 7.3.0 <function>bcpow</function> may return a result with fewer digits after the
decimal point than the <parameter>scale</parameter> parameter would
indicate. This only occurs when the result doesn't require all of the
precision allowed by the <parameter>scale</parameter>. For example:
PHP 7.3.0 之前,<function>bcpow</function> 返回的结果,小数点后的小数位数可能比 <parameter>scale</parameter>
参数指定的少。只有当结果不需要 <parameter>scale</parameter> 允许的所有小数位数时,才会发生这种情况。例如:
<example>
<title><function>bcpow</function> scale example</title>
<title><function>bcpow</function> 小数位数示例</title>
<programlisting role="php">
<![CDATA[
<?php
echo bcpow('5', '2', 2); // prints "25", not "25.00"
echo bcpow('5', '2', 2); // 打印 "25" 而不是 "25.00"
?>
]]>
</programlisting>
Expand All @@ -149,6 +147,7 @@ echo bcpow('5', '2', 2); // prints "25", not "25.00"
<simplelist>
<member><function>bcpowmod</function></member>
<member><function>bcsqrt</function></member>
<member><methodname>BcMath\Number::pow</methodname></member>
</simplelist>
</para>
</refsect1>
Expand Down
3 changes: 2 additions & 1 deletion reference/bc/functions/bcsqrt.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: jakquan Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: jakquan Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<refentry xml:id="function.bcsqrt" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -112,6 +112,7 @@ echo bcsqrt('2', 3); // 1.414
<para>
<simplelist>
<member><function>bcpow</function></member>
<member><methodname>BcMath\Number::sqrt</methodname></member>
</simplelist>
</para>
</refsect1>
Expand Down
3 changes: 2 additions & 1 deletion reference/bc/functions/bcsub.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: jakquan Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: jakquan Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<refentry xml:id="function.bcsub" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
<refnamediv>
Expand Down Expand Up @@ -81,6 +81,7 @@ echo bcsub($a, $b, 4); // -3.7660
<para>
<simplelist>
<member><function>bcadd</function></member>
<member><methodname>BcMath\Number::sub</methodname></member>
</simplelist>
</para>
</refsect1>
Expand Down
7 changes: 5 additions & 2 deletions reference/bc/ini.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 6dfe0767250cdbdf509223f6bc266557b0a3fec9 Maintainer: HonestQiao Status: ready -->
<!-- Reviewed: no Maintainer: HonestQiao -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: HonestQiao Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<section xml:id="bc.configuration" xmlns="http://docbook.org/ns/docbook">
&reftitle.runtime;
&extension.runtime;
Expand Down Expand Up @@ -44,6 +44,9 @@
所有 bcmath 函数中十进制数字的数目。参见
<function>bcscale</function>。
</para>
<note>
<simpara><classname>BcMath\Number</classname> 不受此设置的影响。</simpara>
</note>
</listitem>
</varlistentry>

Expand Down
8 changes: 7 additions & 1 deletion reference/fpm/status.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 2c4f02dcf9781000405646b9b21f9182aea76496 Maintainer: mowangjuanzi Status: ready -->
<!-- EN-Revision: a4429100780d1d0d6ce204c11ad223f6526990ab Maintainer: mowangjuanzi Status: ready -->
<!-- CREDITS: Luffy -->
<sect1 xml:id="fpm.status" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>状态页面</title>
Expand Down Expand Up @@ -165,6 +165,12 @@
达到配置 <literal>request_slowlog_timeout</literal> 的请求总数。
</entry>
</row>
<row>
<entry>memory peak</entry>
<entry>
FPM 启动以来的内存使用峰值。
</entry>
</row>
</tbody>
</tgroup>
</table>
Expand Down

0 comments on commit cd677b3

Please sign in to comment.