From: Ævar Arnfjörð Bjarmason Date: Sun, 19 Jun 2005 14:52:03 +0000 (+0000) Subject: * sprintf("%-75s %6s %13s %13s %13s %9s %14s %14s %9s\n", "Name", "Calls", "Total... X-Git-Tag: 1.5.0beta1~144 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=b7b66fcefa377e103ac7397b198764544c66f0b4;p=lhc%2Fweb%2Fwiklou.git * sprintf("%-75s %6s %13s %13s %13s %9s %14s %14s %9s\n", "Name", "Calls", "Total", "Each", "%", "Mem"); caused a E_WARNING in version 4.3.11 of PHP, the number of arguments did not match the number of %'s, cut it off at the first %9s --- diff --git a/includes/Profiling.php b/includes/Profiling.php index 25dfcb1e60..26238d7d3b 100755 --- a/includes/Profiling.php +++ b/includes/Profiling.php @@ -185,7 +185,7 @@ class Profiler { $width = 140; $nameWidth = $width - 65; $format = "%-{$nameWidth}s %6d %13.3f %13.3f %13.3f%% %9d (%13.3f -%13.3f) [%d]\n"; - $titleFormat = "%-{$nameWidth}s %6s %13s %13s %13s %9s %14s %14s %9s\n"; + $titleFormat = "%-{$nameWidth}s %6s %13s %13s %13s %9s\n"; $prof = "\nProfiling data\n"; $prof .= sprintf($titleFormat, 'Name', 'Calls', 'Total', 'Each', '%', 'Mem'); $this->mCollated = array ();