cvs: php-master-web /scripts mirror-test
| From: | Gabor Hojtsy | Date: | Sun, 29 Aug 2004 11:39:28 +0000 |
| Subject: | cvs: php-master-web /scripts mirror-test | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-25995@lists.php.net to get a copy of this message | ||
goba Sun Aug 29 07:39:28 2004 EDT
Modified files:
/php-master-web/scripts mirror-test
Log:
new mirror-info available worldwide, check for the opposite value, to see if things are fine
http://cvs.php.net/diff.php/php-master-web/scripts/mirror-test?r1=1.71&r2=1.72&ty=u
Index: php-master-web/scripts/mirror-test
diff -u php-master-web/scripts/mirror-test:1.71 php-master-web/scripts/mirror-test:1.72
--- php-master-web/scripts/mirror-test:1.71 Sun Aug 22 11:02:43 2004
+++ php-master-web/scripts/mirror-test Sun Aug 29 07:39:28 2004
@@ -97,10 +97,10 @@
}
// Explode information row by delimiter
- $info = explode("|", $rv);
+ $info = explode("|", trim($rv));
// Invalid data received, skip mirror site
- if (count($info) < 7) {
+ if (count($info) < 8) {
$hosts[$index]['problem'] = "invalid data received (probably improper
ErrorHandler)";
continue;
}
@@ -142,7 +142,7 @@
}
// Check that the mirror has all the mirror settings updated
- if ((count($info) == 8) && ($info[7] == '0')) {
+ if ($info[7] != '1') {
$hosts[$index]['problem'] = "Mirror settings are not up to date (see mirroring
page)";
}