From b7b66fcefa377e103ac7397b198764544c66f0b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 19 Jun 2005 14:52:03 +0000 Subject: [PATCH] * 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 --- includes/Profiling.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (); -- 2.20.1