]> granicus.if.org Git - php/commitdiff
Beautify.
authorSebastian Bergmann <sebastian@php.net>
Sun, 12 May 2002 08:33:18 +0000 (08:33 +0000)
committerSebastian Bergmann <sebastian@php.net>
Sun, 12 May 2002 08:33:18 +0000 (08:33 +0000)
Zend/ZEND_CHANGES

index 350ca5bcd687f3497c41db64994c2e7576880928..6536bc9bb0777f5784153bdece1c1ca78d18364b 100644 (file)
@@ -502,17 +502,14 @@ Changes in the Zend Engine 2.0
         $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";
+            $class = isset($step['class']) ? $step['class'] . '::' : '';
+
+            printf(
+              "%s [%s:%s]\n",
+              $step['function'],
+              $step['file'],
+              $step['line']
+            );
         }
         ?>