]> granicus.if.org Git - php/commitdiff
$val not in first param to sprintf
authorMarcus Boerger <helly@php.net>
Thu, 3 Oct 2002 18:25:30 +0000 (18:25 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 3 Oct 2002 18:25:30 +0000 (18:25 +0000)
run-tests.php

index 60e95fb8e61d38020abde6af554d9f6e08d7e6f8..32a84d1154e4da62d84544ae840eabcf419855a0 100755 (executable)
@@ -474,8 +474,8 @@ function generate_diff($wanted,$output)
     $o1 = array_diff($o,$w);
     $w2 = array();
     $o2 = array();
-    foreach($w1 as $idx => $val) $w2[sprintf("%03d<",$idx)] = sprintf("%03d- $val", $idx+1);
-    foreach($o1 as $idx => $val) $o2[sprintf("%03d>",$idx)] = sprintf("%03d+ $val", $idx+1);
+    foreach($w1 as $idx => $val) $w2[sprintf("%03d<",$idx)] = sprintf("%03d- ", $idx+1).$val;
+    foreach($o1 as $idx => $val) $o2[sprintf("%03d>",$idx)] = sprintf("%03d+ ", $idx+1).$val;
     $diff = array_merge($w2, $o2);
     ksort($diff);
     return implode("\r\n", $diff);