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;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php