1
0
mirror of https://github.com/php/doc-de.git synced 2026-03-25 07:42:18 +01:00
Files
archived-doc-de/reference/errorfunc/functions/debug-backtrace.xml
Florian Anderiasch 4b4b2c53b5 forgot EN-revision
git-svn-id: https://svn.php.net/repository/phpdoc/de/trunk@289158 c90b9560-bf6c-de11-be94-00142212c4b1
2009-10-04 00:38:10 +00:00

244 lines
5.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: fa Status: ready -->
<refentry xml:id="function.debug-backtrace" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>debug_backtrace</refname>
<refpurpose>Erzeugt Daten zur Ablaufverfolgung</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>debug_backtrace</methodname>
<methodparam choice="opt"><type>bool</type><parameter>provide_object</parameter><initializer>true</initializer></methodparam>
</methodsynopsis>
<para>
<function>debug_backtrace</function> erzeugt Daten zur Ablaufverfolgung.
</para>
</refsect1>
<refsect1 role="parameters"><!-- {{{ -->
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>provide_object</parameter></term>
<listitem>
<para>
Legt fest, ob der "Objekt"-Index befüllt wird. Standardwert ist &true;.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1><!-- }}} -->
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Gibt ein assoziatives <type>Array</type> zurück. Als zurückgegebene
Arrayelemente von <function>debug_backtrace</function> sind möglich:
</para>
<para>
<table>
<title>Mögliche Rückgabewerte von <function>debug_backtrace</function></title>
<tgroup cols="3">
<thead>
<row>
<entry>&Name;</entry>
<entry>&Type;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>function</entry>
<entry><type>string</type></entry>
<entry>
Der Name der aktuell ausgeführten Funktion. Siehe auch
<link linkend="language.constants.predefined">__FUNCTION__</link>.
</entry>
</row>
<row>
<entry>line</entry>
<entry><type>integer</type></entry>
<entry>
Die aktuelle Zeilennummer. Siehe auch
<link linkend="language.constants.predefined">__LINE__</link>.
</entry>
</row>
<row>
<entry>file</entry>
<entry><type>string</type></entry>
<entry>
Der aktuelle Dateiname. Siehe auch
<link linkend="language.constants.predefined">__FILE__</link>.
</entry>
</row>
<row>
<entry>class</entry>
<entry><type>string</type></entry>
<entry>
Der aktuelle <link linkend="language.oop5">class</link> - Name. Siehe auch
<link linkend="language.constants.predefined">__CLASS__</link>.
</entry>
</row>
<row>
<entry>object</entry>
<entry><type>object</type></entry>
<entry>
Das aktuelle <link linkend="language.oop5">Objekt</link>.
</entry>
</row>
<row>
<entry>type</entry>
<entry><type>string</type></entry>
<entry>
Der aktuelle Typ des Aufrufs. Falls der Aufruf in einer
Methode erfolgte, wird "->" zurückgegeben. Falls der Aufruf
aus einer statischen Funktion erfolgte, wird "::"
zurückgegeben und falls der Aufruf aus einer Funktion
erfolgte, wird nichts zurückgegeben.
</entry>
</row>
<row>
<entry>args</entry>
<entry><type>array</type></entry>
<entry>
Falls der Aufruf aus einer Funktion erfolgte, werden hier die
Funktionsargumente aufgelistet. Falls der Aufruf aus einer
eingebundenen Datei erfolgte, werden die Namen der
Include-Dateien angegeben.
</entry>
</row>
</tbody>
</tgroup>
</table>
</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.2.5</entry>
<entry>
Der optionale Parameter <parameter>provide_object</parameter> wurde
hinzugefügt.
</entry>
</row>
<row>
<entry>5.1.1</entry>
<entry>
Aktuelles <type>object</type> als möglichen Rückgabewert hinzugefügt.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>debug_backtrace</function>-Beispiel</title>
<programlisting role="php">
<![CDATA[
<?php
// Dateiname: /tmp/a.php
function a_test($str)
{
echo "\nHi: $str";
var_dump(debug_backtrace());
}
a_test('friend');
?>
<?php
// Dateiname: /tmp/b.php
include_once '/tmp/a.php';
?>
]]>
</programlisting>
<para>
Ergebnisse beim Aufruf von <filename>/tmp/b.php</filename>:
</para>
<screen>
<![CDATA[
Hi: friend
array(2) {
[0]=>
array(4) {
["file"] => string(10) "/tmp/a.php"
["line"] => int(10)
["function"] => string(6) "a_test"
["args"]=>
array(1) {
[0] => &string(6) "friend"
}
}
[1]=>
array(4) {
["file"] => string(10) "/tmp/b.php"
["line"] => int(2)
["args"] =>
array(1) {
[0] => string(10) "/tmp/a.php"
}
["function"] => string(12) "include_once"
}
}
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>trigger_error</function></member>
<member><function>debug_print_backtrace</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->