Commit:    7b795e12efca7df8cf687853a5584d89133ce516
Author:    Daniel P. Brown <[email protected]>         Wed, 10 Oct 2012 12:30:13 
-0400
Parents:   dae5982724723dc1d2d450ef3d35c78df0ffed4d
Branches:  master

Link:       
http://git.php.net/?p=web/master.git;a=commitdiff;h=7b795e12efca7df8cf687853a5584d89133ce516

Log:
Adds the database update for available extensions.

Changed paths:
  M  scripts/mirror-test


Diff:
diff --git a/scripts/mirror-test b/scripts/mirror-test
index 465b9ef..3f7a6c2 100755
--- a/scripts/mirror-test
+++ b/scripts/mirror-test
@@ -221,6 +221,13 @@ foreach ($hosts as $index => $host) {
       continue;
     }
 
+    // Get the list of available extensions on the mirror
+    if (isset($info[8])) {
+      $hosts[$index]['ext_avail'] = $info[8];
+    } else {
+      $hosts[$index]['ext_avail'] = 'N/A';
+    }
+
     // Check if mirror has correct ServerName/ServerAlias entries
     // Most likely cause is unofficial hostname as ServerName instead of 
ServerAlias
     // Important to keep my php.net cookie around
@@ -348,7 +355,8 @@ foreach ($hosts as $host) {
                  "has_stats = '"  . ((int) $host['has_stats'])      . "', " .
                  "phpversion = '" . addslashes($host['phpversion']) . "', " .
                  "lang = '"       . $host['lang']                   . "', " .
-                 "ocmt = '' " .
+                 "ocmt = '', " .
+                "ext_avail = '" . mysql_real_escape_string($host['ext_avail']) 
. "' " .
                  "WHERE hostname = '" . $host['hostname'] . "'";
                   
         $result = mysql_query($query) or die("unable to update the database: 
$query: " . mysql_error());
@@ -383,4 +391,3 @@ if ($mirrorsupdated < 70) {
         "$mirrorsupdated mirror sites properly updated (out of " . 
count($hosts) . ")\n\nProblematic mirrors:\n\n" . $problems
     );
 }
-


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

Reply via email to