cvs: php4 / run-tests.php
| From: | Marcus B�rger | Date: | Tue, 29 Oct 2002 14:13:12 +0000 |
| Subject: | cvs: php4 / run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-15586@lists.php.net to get a copy of this message | ||
helly Tue Oct 29 09:13:12 2002 EDT
Modified files:
/php4 run-tests.php
Log:
better use array_diff_assoc
the old way resulted in erroneus .diff
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.98 php4/run-tests.php:1.99
--- php4/run-tests.php:1.98 Mon Oct 28 13:48:07 2002
+++ php4/run-tests.php Tue Oct 29 09:13:11 2002
@@ -686,8 +686,8 @@
{
$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;