From: Marcus Boerger Date: Tue, 29 Oct 2002 14:13:11 +0000 (+0000) Subject: better use array_diff_assoc X-Git-Tag: php-4.3.0RC1~456 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02d35d26cde6e317ed0dec836d3af1de6e4446f2;p=php better use array_diff_assoc the old way resulted in erroneus .diff --- 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;