diff options
| author | Marcus Boerger <helly@php.net> | 2002-10-03 18:25:30 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2002-10-03 18:25:30 +0000 |
| commit | ad120d2e280a7d3dafc7cfdf879ae554b38065d1 (patch) | |
| tree | 57cfc94d48f84b308d260a9e116cbb3e02334df4 /run-tests.php | |
| parent | 52c529c5afd51058349a93287a7879044520c3f5 (diff) | |
| download | php-git-ad120d2e280a7d3dafc7cfdf879ae554b38065d1.tar.gz | |
$val not in first param to sprintf
Diffstat (limited to 'run-tests.php')
| -rwxr-xr-x | run-tests.php | 4 |
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); |
