[llvm-commits] CVS: nightlytest-serverside/NightlyTester.php

Reid Spencer reid at x10sys.com
Wed Jul 26 09:08:49 PDT 2006



Changes in directory nightlytest-serverside:

NightlyTester.php updated: 1.3 -> 1.4
---
Log message:

Eliminate syntax errors from this file.


---
Diffs of the changes:  (+7 -6)

 NightlyTester.php |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)


Index: nightlytest-serverside/NightlyTester.php
diff -u nightlytest-serverside/NightlyTester.php:1.3 nightlytest-serverside/NightlyTester.php:1.4
--- nightlytest-serverside/NightlyTester.php:1.3	Tue Jul 25 20:09:24 2006
+++ nightlytest-serverside/NightlyTester.php	Wed Jul 26 11:08:35 2006
@@ -156,12 +156,13 @@
  *****************************************************/
 function get_a_files($mysql_link, $night_id){
 	$result = mysql_query("select a_file_size from night WHERE id=$night_id") or die (mysql_error());
-	$result=array();
 	$files = array();
 	$files = explode("\n", $result['a_file_size']);
+	$result = array();
 	foreach ($files as $f){
-		preg_match("/(.+)\s+(.+)\s+(.+)/", $f, $matches)
-		$result["{$matches[0]"] = array( "{$matches[1]", "{$matches[2]" );
+    $matches = array();
+		preg_match("/(.+)\s+(.+)\s+(.+)/", $f, $matches);
+		$result["$matches[1]"] = array("$matches[2]", "$matches[3]");
 	}
 	return $result;
 }
@@ -181,8 +182,8 @@
 	$files = array();
 	$files = explode("\n", $result['o_file_size']);
 	foreach ($files as $f){
-		preg_match("/(.+)\s+(.+)\s+(.+)/", $f, $matches)
-		$result["{$matches[0]"] = array( "{$matches[1]", "{$matches[2]" );
+		preg_match("/(.+)\s+(.+)\s+(.+)/", $f, $matches);
+		$result["$matches[0]"] = array( "$matches[1]", "$matches[2]" );
 	}
 	return $result;
 }
@@ -251,4 +252,4 @@
 */
 
 
-?>
\ No newline at end of file
+?>






More information about the llvm-commits mailing list