summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-10-03 18:25:30 +0000
committerMarcus Boerger <helly@php.net>2002-10-03 18:25:30 +0000
commitad120d2e280a7d3dafc7cfdf879ae554b38065d1 (patch)
tree57cfc94d48f84b308d260a9e116cbb3e02334df4 /run-tests.php
parent52c529c5afd51058349a93287a7879044520c3f5 (diff)
downloadphp-git-ad120d2e280a7d3dafc7cfdf879ae554b38065d1.tar.gz
$val not in first param to sprintf
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/run-tests.php b/run-tests.php
index 60e95fb8e6..32a84d1154 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -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);