cvs: ZendEngine2 / ZEND_CHANGES

From: Date: Sun, 12 May 2002 08:16:14 +0000
Subject: cvs: ZendEngine2 / ZEND_CHANGES
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-117@lists.php.net to get a copy of this message
sebastian Sun May 12 04:16:14 2002 EDT Modified files: /ZendEngine2 ZEND_CHANGES Log: Start documenting the debug backtracing. Index: ZendEngine2/ZEND_CHANGES diff -u ZendEngine2/ZEND_CHANGES:1.23 ZendEngine2/ZEND_CHANGES:1.24 --- ZendEngine2/ZEND_CHANGES:1.23 Sun May 12 04:15:45 2002 +++ ZendEngine2/ZEND_CHANGES Sun May 12 04:16:14 2002 @@ -494,6 +494,28 @@ } ?> + * Built-In Backtracing. + + Example: + + <?php + $backtrace = debug_backtrace(); + + foreach ($backtrace as $step) { + if (isset($step['class'])) { + print $step['class']; + print '::'; + } + + print $step['function']; + print ' ['; + print $step['file']; + print ':'; + print $step['line']; + print "]\n"; + } + ?> + Changes in the Zend Engine 1.0

« previous php.zend-engine.cvs (#117) next »