From 35b0e724c85707c58cdf82f1acfbba7a8d7f9514 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 9 Dec 2009 20:50:43 +0000 Subject: [PATCH] Generic index.php is now masking backtrace data --- index.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 979aa45..6f4585b 100644 --- a/index.php +++ b/index.php @@ -111,7 +111,12 @@ final class ApplicationEntryPoint { if (!isset($trace['file'])) $trace['file'] = __FILE__; if (!isset($trace['line'])) $trace['line'] = __LINE__; if (!isset($trace['args'])) $trace['args'] = array(); - $backtrace .= "".basename($trace['file']).":".$trace['line'].", ".$trace['function']."(".count($trace['args']).")
"; + $backtrace .= sprintf("%s:%d, %s(%d)
\n", + basename($trace['file']), + $trace['line'], + $trace['function'], + count($trace['args']) + ); } // END - foreach // Init application instance @@ -198,7 +203,6 @@ final class ApplicationEntryPoint { // Include the application selector require($cfg->getConfigEntry('base_path') . 'inc/selector.php'); } // END - main() - } // END - class // Do not remove the following line: -- 2.39.5