reference/errorfunc/functions/debug-print-backtrace.xml
24ea750d479d4992705bfb11bd3be4a388c7c13f
...
...
@@ -12,7 +12,8 @@
12
12
&reftitle.description;
13
13
<methodsynopsis>
14
14
<type>void</type><methodname>debug_print_backtrace</methodname>
15
-
<void/>
15
+
<methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam>
16
+
<methodparam choice="opt"><type>int</type><parameter>limit</parameter><initializer>0</initializer></methodparam>
16
17
</methodsynopsis>
17
18
<para>
18
19
<function>debug_print_backtrace</function> prints a PHP backtrace. It
...
...
@@ -21,12 +22,44 @@
21
22
</para>
22
23
</refsect1>
23
24

24
-
<refsect1 role="parameters">
25
-
&reftitle.parameters;
26
-
<para>
27
-
This function has no parameters.
28
-
</para>
29
-
</refsect1>
25
+
<refsect1 role="parameters"><!-- {{{ -->
26
+
&reftitle.parameters;
27
+
<para>
28
+
<variablelist>
29
+
<varlistentry>
30
+
<term><parameter>options</parameter></term>
31
+
<listitem>
32
+
<para>
33
+
This parameter is a bitmask for the following options:
34
+
<table>
35
+
<title><function>debug_print_backtrace</function> options</title>
36
+
<tgroup cols="2">
37
+
<tbody>
38
+
<row>
39
+
<entry>DEBUG_BACKTRACE_IGNORE_ARGS</entry>
40
+
<entry>
41
+
Whether or not to omit the "args" index, and thus all the function/method arguments,
42
+
to save memory.
43
+
</entry>
44
+
</row>
45
+
</tbody>
46
+
</tgroup>
47
+
</table>
48
+
</para>
49
+
</listitem>
50
+
</varlistentry>
51
+
<varlistentry>
52
+
<term><parameter>limit</parameter></term>
53
+
<listitem>
54
+
<para>
55
+
This parameter can be used to limit the number of stack frames printed.
56
+
By default (<parameter>limit</parameter>=<literal>0</literal>) it prints all stack frames.
57
+
</para>
58
+
</listitem>
59
+
</varlistentry>
60
+
</variablelist>
61
+
</para>
62
+
</refsect1><!-- }}} -->
30
63

31
64
<refsect1 role="returnvalues">
32
65
&reftitle.returnvalues;
...
...
@@ -75,10 +108,6 @@ include 'include.php';
75
108
&example.outputs.similar;
76
109
<screen>
77
110
<![CDATA[
78
-
#0 eval() called at [/tmp/include.php:5]
79
-
#1 a() called at [/tmp/include.php:17]
80
-
#2 include(/tmp/include.php) called at [/tmp/test.php:3]
81
-

82
111
#0 c() called at [/tmp/include.php:10]
83
112
#1 b() called at [/tmp/include.php:6]
84
113
#2 a() called at [/tmp/include.php:17]
85
114