From 02d35d26cde6e317ed0dec836d3af1de6e4446f2 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Tue, 29 Oct 2002 14:13:11 +0000 Subject: [PATCH] better use array_diff_assoc the old way resulted in erroneus .diff --- run-tests.php | 4 ++-- 1 file 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; -- 2.50.1