note 42041 deleted from function.debug-backtrace by cmb

From: Date: Sun, 17 Nov 2019 08:31:45 +0000
Subject: note 42041 deleted from function.debug-backtrace by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213067@lists.php.net to get a copy of this message
Note Submitter: ad-rotator.com ---- To simply print out the file/function trace (chain of calls, file and line number before the error): function getTrace() { $vDebug = debug_backtrace(); $vFiles = array(); for ($i=0;$i<count($vDebug);$i++) { // skip the first one, since it's always this func if ($i==0) { continue; } $aFile = $vDebug[$i]; $vFiles[] = '('.basename($aFile['file']).':'.$aFile['line'].')'; } // for $vTraceStr = implode(',',$vFiles); }

« previous php.notes (#213067) next »