Skip to content

Commit

Permalink
Update errorfunc
Browse files Browse the repository at this point in the history
  • Loading branch information
mowangjuanzi committed Dec 12, 2023
1 parent 1691bfa commit 7719040
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
20 changes: 13 additions & 7 deletions reference/errorfunc/functions/debug-backtrace.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: 26a8f2141b987f95047435f83d2710eb11468778 Maintainer: daijie Status: ready -->
<!-- EN-Revision: e203b12d7964aa7c729e1f7c26fcbf357fc9fb63 Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<refentry xml:id="function.debug-backtrace" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -68,22 +68,28 @@
<entry><code>debug_backtrace(1)</code></entry>
</row>
<row>
<entry><code>debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS &amp; DEBUG_BACKTRACE_PROVIDE_OBJECT)</code></entry>
<entry><code>debug_backtrace(0)</code></entry>
<entry valign="middle">
忽略索引 <literal>"object"</literal> 和填充索引 <literal>"args"</literal>。
</entry>
</row>
<row>
<entry><code>debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)</code></entry>
<entry morerows="1" valign="middle">
忽略索引 <literal>"object"</literal>。
忽略索引 <literal>"object"</literal> <emphasis>和</emphasis> 索引 <literal>"args"</literal>
</entry>
</row>
<row>
<entry><code>debug_backtrace(0)</code></entry>
<entry><code>debug_backtrace(2)</code></entry>
</row>
<row>
<entry><code>debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)</code></entry>
<entry><code>debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT|DEBUG_BACKTRACE_IGNORE_ARGS)</code></entry>
<entry morerows="1" valign="middle">
忽略索引 <literal>"object"</literal> <emphasis>and</emphasis> index <literal>"args"</literal>。
填充索引 <literal>"object"</literal> <emphasis></emphasis>忽略索引 <literal>"args"</literal>。
</entry>
</row>
<row>
<entry><code>debug_backtrace(2)</code></entry>
<entry><code>debug_backtrace(3)</code></entry>
</row>
</tbody>
</tgroup>
Expand Down
18 changes: 11 additions & 7 deletions reference/errorfunc/functions/error-reporting.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: de9c65c91ff1710d8b2d2ec955caea0162679305 Maintainer: daijie Status: ready -->
<!-- CREDITS: Luffy -->

<!-- EN-Revision: 9caac4c5cce859b4ae5d497972442fcfaa840d81 Maintainer: daijie Status: ready -->
<!-- CREDITS: Luffy, mowangjuanzi -->
<refentry xml:id="function.error-reporting" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>error_reporting</refname>
Expand Down Expand Up @@ -50,8 +49,13 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
返回旧的 <link linkend="ini.error-reporting">error_reporting</link> 级别,或者在 <parameter>error_level</parameter> 参数未给出时返回当前的级别
在更改为 <parameter>error_level</parameter> <emphasis>之前</emphasis>返回 <link linkend="ini.error-reporting">error_reporting</link> 级别。
</para>
<note>
<simpara>
<link linkend="language.operators.errorcontrol">错误控制</link> <literal>@</literal> 运算符在错误处理期间会更改错误级别。
</simpara>
</note>
</refsect1>

<refsect1 role="changelog">
Expand Down Expand Up @@ -118,9 +122,8 @@ ini_set('error_reporting', E_ALL);
&reftitle.notes;
<tip>
<simpara>
传入 <literal>-1</literal> 的值将尽可能显示所有错误,
甚至包括将来 PHP 可能加入的新的错误级别和常量。
常量 <constant>E_ALL</constant> 有同样的行为。
传入 <literal>-1</literal> 的值将尽可能显示所有错误,甚至包括将来 PHP
可能加入的新的错误级别和常量。常量 <constant>E_ALL</constant> 有同样的行为。
</simpara>
</tip>
</refsect1>
Expand All @@ -132,6 +135,7 @@ ini_set('error_reporting', E_ALL);
<member><link linkend="ini.display-errors">display_errors</link> 指令</member>
<member><link linkend="ini.html-errors">html_errors</link> 指令</member>
<member><link linkend="ini.xmlrpc-errors">xmlrpc_errors</link> 指令</member>
<member><link linkend="language.operators.errorcontrol">错误控制</link>运算符</member>
<member><function>ini_set</function></member>
</simplelist>
</para>
Expand Down

0 comments on commit 7719040

Please sign in to comment.