cvs: php-master-web /scripts mirror-test
| From: | Hannes Magnusson | Date: | Sat, 14 Apr 2007 09:07:08 +0000 |
| Subject: | cvs: php-master-web /scripts mirror-test | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-35166@lists.php.net to get a copy of this message | ||
bjori Sat Apr 14 09:07:08 2007 UTC
Modified files:
/php-master-web/scripts mirror-test
Log:
Add a test for bug#35970 (500 Internal server error)
# Noone reads our guidelines? This will disable 13mirrors!
http://cvs.php.net/viewvc.cgi/php-master-web/scripts/mirror-test?r1=1.91&r2=1.92&diff_format=u
Index: php-master-web/scripts/mirror-test
diff -u php-master-web/scripts/mirror-test:1.91 php-master-web/scripts/mirror-test:1.92
--- php-master-web/scripts/mirror-test:1.91 Thu Mar 29 21:05:54 2007
+++ php-master-web/scripts/mirror-test Sat Apr 14 09:07:08 2007
@@ -251,6 +251,24 @@
continue;
}
+ // -------------------------------------------------------------------------
+ // Fifth HTTP request, checking for
var handler
+ // (See bug#35970)
+
+ $url = "http://{$host['hostname']}/manual/en/ref.var.php";
+ $headers = get_headers($url, 1);
+ if($headers == false) {
+ // Probably timed out, let it slight
+ continue;
+ }
+
+ if(strpos($headers[0], "200 OK") === false) {
+ $hosts[$index]['lastupdated'] = 0;
+ $hosts[$index]['problem'] = "Please follow our mirror guidelines. You need
to remove the 'var' handler\n";
+ $hosts[$index]['problem'].= "(The test was ran on $url and should return
'variable handling functions')";
+ continue;
+ }
+
}
// Go through all mirror sites checked