note 86310 added to function.debug-backtrace

From: Date: Sun, 12 Oct 2008 14:42:41 +0000
Subject: note 86310 added to function.debug-backtrace
Groups: php.notes 
Request: Send a blank email to php-notes+get-145291@lists.php.net to get a copy of this message
My two cents. See my XML Handler which uses this class. <?php // Basic error functions class errorBase { function backtrace($provideObject=false) { foreach(debug_backtrace($provideObject) as $row) { if($last!=$row['file']) echo "File: $file<br>\n'"; $last=$row['file']; echo " Line: $row[line]: "; if($row['class']!='') echo "$row[class]$row[type]$row[function]"; else echo "$row[function]"; echo "("; echo join("', '",$args); echo ")<br>\n"; } } function error($msg,$fatal=false) { echo "<div align=\"center\"><font color=\"red\"><b>Error: $msg</b></font></div>"; $last=''; $this->backtrace(); exit(); } function fatalError($msg){return $this->error($msg,true);} } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 71.238.38.243 ---- Manual Page -- http://www.php.net/manual/en/function.debug-backtrace.php Edit -- https://master.php.net/note/edit/86310 Del: integrated -- https://master.php.net/note/delete/86310/integrated Del: useless -- https://master.php.net/note/delete/86310/useless Del: bad code -- https://master.php.net/note/delete/86310/bad+code Del: spam -- https://master.php.net/note/delete/86310/spam Del: non-english -- https://master.php.net/note/delete/86310/non-english Del: in docs -- https://master.php.net/note/delete/86310/in+docs Del: other reasons-- https://master.php.net/note/delete/86310 Reject -- https://master.php.net/note/reject/86310 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#145291) next »