cvs: php-master-web /scripts mirror-test

From: Date: Thu, 29 Mar 2007 16:37:14 +0000
Subject: cvs: php-master-web /scripts mirror-test
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-34980@lists.php.net to get a copy of this message
bjori Thu Mar 29 16:37:14 2007 UTC Modified files: /php-master-web/scripts mirror-test Log: Add test case for bug#31852 (/functions returns functions.js on some mirrors) http://cvs.php.net/viewvc.cgi/php-master-web/scripts/mirror-test?r1=1.85&r2=1.86&diff_format=u Index: php-master-web/scripts/mirror-test diff -u php-master-web/scripts/mirror-test:1.85 php-master-web/scripts/mirror-test:1.86 --- php-master-web/scripts/mirror-test:1.85 Thu Mar 29 16:07:21 2007 +++ php-master-web/scripts/mirror-test Thu Mar 29 16:37:14 2007 @@ -229,6 +229,26 @@ $hosts[$index]['problem'].= "(The test was ran on $url)"; continue; } + + // ------------------------------------------------------------------------- + // Fourth HTTP request, checking for apache MultiViews configuration + // (See bug#31852) + $url = "http://{$host['hostname']}/functions"; + $headers = get_headers($url, 1); + if($headers == false) { + /* Probably timed out, let it slight for now */ + continue; + } + $headers = array_change_key_case($headers, CASE_LOWER); + + if (strpos($headers["content-type"], "text/html") === false) { + $hosts[$index]['lastupdated'] = 0; + $hosts[$index]['problem'] = "MultiViews/Content Negotiation turned on.\n"; + $hosts[$index]['problem'] = "(The test was ran on $url and should return the function language reference)"; + continue; + } + + } // Go through all mirror sites checked

« previous php.mirrors (#34980) next »