helly           Thu Oct  3 14:25:33 2002 EDT

  Modified files:              
    /php4       run-tests.php 
  Log:
  $val not in first param to sprintf
  
  
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.57 php4/run-tests.php:1.58
--- php4/run-tests.php:1.57     Wed Oct  2 18:31:26 2002
+++ php4/run-tests.php  Thu Oct  3 14:25:30 2002
@@ -474,8 +474,8 @@
     $o1 = array_diff($o,$w);
     $w2 = array();
     $o2 = array();
-    foreach($w1 as $idx => $val) $w2[sprintf("%03d<",$idx)] = sprintf("%03d- $val", 
$idx+1);
-    foreach($o1 as $idx => $val) $o2[sprintf("%03d>",$idx)] = sprintf("%03d+ $val", 
$idx+1);
+    foreach($w1 as $idx => $val) $w2[sprintf("%03d<",$idx)] = sprintf("%03d- ", 
+$idx+1).$val;
+    foreach($o1 as $idx => $val) $o2[sprintf("%03d>",$idx)] = sprintf("%03d+ ", 
+$idx+1).$val;
     $diff = array_merge($w2, $o2);
     ksort($diff);
     return implode("\r\n", $diff);



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to