From 3fa1fd866f4d983ad8bc46957e7d075465e82cd7 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Sun, 12 May 2002 08:33:18 +0000 Subject: [PATCH] Beautify. --- Zend/ZEND_CHANGES | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/Zend/ZEND_CHANGES b/Zend/ZEND_CHANGES index 350ca5bcd6..6536bc9bb0 100644 --- a/Zend/ZEND_CHANGES +++ b/Zend/ZEND_CHANGES @@ -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'] + ); } ?> -- 2.50.1