note 85915 added to function.debug-backtrace
| From: | ForceFlow at osu1 dot php dot net | Date: | Wed, 24 Sep 2008 13:43:16 +0000 |
| Subject: | note 85915 added to function.debug-backtrace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-144668@lists.php.net to get a copy of this message | ||
I think I worked out an easy way to get the trace printed out in an easily readable format with
minimal code:
<?
echo parse_backtrace(debug_backtrace());
function parse_backtrace($raw){
$output="";
foreach($raw as $entry){
$output.="\nFile: ".$entry['file']." (Line:
".$entry['line'].")\n";
$output.="Function: ".$entry['function']."\n";
$output.="Args: ".implode(", ", $entry['args'])."\n";
}
return $output;
}
?>
----
Server IP: 208.69.120.35
Probable Submitter: 216.153.230.5
----
Manual Page -- http://www.php.net/manual/en/function.debug-backtrace.php
Edit -- https://master.php.net/note/edit/85915
Del: integrated -- https://master.php.net/note/delete/85915/integrated
Del: useless -- https://master.php.net/note/delete/85915/useless
Del: bad code -- https://master.php.net/note/delete/85915/bad+code
Del: spam -- https://master.php.net/note/delete/85915/spam
Del: non-english -- https://master.php.net/note/delete/85915/non-english
Del: in docs -- https://master.php.net/note/delete/85915/in+docs
Del: other reasons-- https://master.php.net/note/delete/85915
Reject -- https://master.php.net/note/reject/85915
Search -- https://master.php.net/manage/user-notes.php