cvs: php-master-web /scripts mirror-test
| From: | Philip Olson | Date: | Thu, 08 Mar 2007 15:27:20 +0000 |
| Subject: | cvs: php-master-web /scripts mirror-test | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-34592@lists.php.net to get a copy of this message | ||
philip Thu Mar 8 15:27:20 2007 UTC
Modified files:
/php-master-web/scripts mirror-test
Log:
consolidate php version info
http://cvs.php.net/viewvc.cgi/php-master-web/scripts/mirror-test?r1=1.80&r2=1.81&diff_format=u
Index: php-master-web/scripts/mirror-test
diff -u php-master-web/scripts/mirror-test:1.80 php-master-web/scripts/mirror-test:1.81
--- php-master-web/scripts/mirror-test:1.80 Thu Mar 8 01:31:59 2007
+++ php-master-web/scripts/mirror-test Thu Mar 8 15:27:19 2007
@@ -117,7 +117,11 @@
}
// Put pieces into the $hosts array
- $hosts[$index]['phpversion'] = $info[1];
+ if (preg_match("@^\d+\.\d+\.\d+@", $info[1], $matches)) {
+ $hosts[$index]['phpversion'] = $matches[0];
+ } else {
+ $hosts[$index]['phpversion'] = 'Unknown';
+ }
// The last updated date is a number [db security]
if (is_numeric($info[2])) {