]> granicus.if.org Git - php/commitdiff
Start documenting the debug backtracing.
authorSebastian Bergmann <sebastian@php.net>
Sun, 12 May 2002 08:16:14 +0000 (08:16 +0000)
committerSebastian Bergmann <sebastian@php.net>
Sun, 12 May 2002 08:16:14 +0000 (08:16 +0000)
Zend/ZEND_CHANGES

index 6a93c560d369dfe21a8ea09c37bfb507af57a31c..350ca5bcd687f3497c41db64994c2e7576880928 100644 (file)
@@ -494,6 +494,28 @@ Changes in the Zend Engine 2.0
         }
         ?>
 
+    * 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