diff options
author | Marcus Boerger <helly@php.net> | 2002-10-29 14:13:11 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-10-29 14:13:11 +0000 |
commit | 02d35d26cde6e317ed0dec836d3af1de6e4446f2 (patch) | |
tree | a433a1e4a26a9c73aa79cfa0341752d3339b44f5 /run-tests.php | |
parent | 25e7a092293b4e54e25592d34834bb3d55ae0fdc (diff) | |
download | php-git-02d35d26cde6e317ed0dec836d3af1de6e4446f2.tar.gz |
better use array_diff_assoc
the old way resulted in erroneus .diff
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 6b6bed6422..d08d180b39 100755 --- a/run-tests.php +++ b/run-tests.php @@ -686,8 +686,8 @@ function generate_diff($wanted,$output) { $w = explode("\n", $wanted); $o = explode("\n", $output); - $w1 = array_diff($w,$o); - $o1 = array_diff($o,$w); + $w1 = array_diff_assoc($w,$o); + $o1 = array_diff_assoc($o,$w); $w2 = array(); $o2 = array(); foreach($w1 as $idx => $val) $w2[sprintf("%03d<",$idx)] = sprintf("%03d- ", $idx+1).$val; |