English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Manuel de référence PHP Error & Loggings
La fonction debug_print_backtrace() affiche une trace.
void debug_print_backtrace ( void );
debug_print_backtrace() a affiché une trace PHP. Il a affiché les appels de fonctions, les inclusions/Fichiers nécessaires et code eval().
Numéro | Paramètres et explications |
---|---|
1 | void Aucun paramètre nécessaire |
Aucune valeur de retour.
Voici l'utilisation de la fonction debug_print_backtrace-
<?php function one() { two(); } function two() { three(); } function three(){ debug_print_backtrace(); } one(); ?>Voyons un test‹/›
Cela produira le résultat suivant-
#0 three() appelé à [/var/www/w3codebox/php/test.php:7] #1 two() appelé à [/var/www/w3codebox/php/test.php:3] #2 one() appelé à [/var/www/w3codebox/php/test.php:13]