* sprintf("%-75s %6s %13s %13s %13s %9s %14s %14s %9s\n", "Name", "Calls", "Total...
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 19 Jun 2005 14:52:03 +0000 (14:52 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 19 Jun 2005 14:52:03 +0000 (14:52 +0000)
  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

index 25dfcb1..26238d7 100755 (executable)
@@ -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 ();