com web/qa: Make include/release-qa.php compat with PHP 5: include/release-qa.php
| From: | Sara Golemon | Date: | Sun, 18 Jun 2017 16:23:26 +0000 |
| Subject: | com web/qa: Make include/release-qa.php compat with PHP 5: include/release-qa.php | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-67949@lists.php.net to get a copy of this message | ||
Commit: 2d3c2809ad4c953f100166973a646b950f087732
Author: Sara Golemon <pollita@php.net> Sun, 18 Jun 2017 12:23:26 -0400
Parents: 37fe83041c50c000f2a556c2eb68207591752f5a
Branches: master
Link: http://git.php.net/?p=web/qa.git;a=commitdiff;h=2d3c2809ad4c953f100166973a646b950f087732
Log:
Make include/release-qa.php compat with PHP 5
Changed paths:
M include/release-qa.php
Diff:
diff --git a/include/release-qa.php b/include/release-qa.php
index 77eb7f0..ae30da6 100644
--- a/include/release-qa.php
+++ b/include/release-qa.php
@@ -126,7 +126,7 @@ $QA_CHECKSUM_TYPES = [ 'md5', 'sha256' ];
// release : These are encouraged for use (e.g., linked at qa.php.net)
// reported : These are allowed to report @ the php.qa.reports mailing list
-(function () use (&$QA_RELEASES, $QA_CHECKSUM_TYPES) {
+$qa_releases_process = function () use (&$QA_RELEASES, $QA_CHECKSUM_TYPES) {
foreach ($QA_RELEASES as $pversion => $info) {
if (isset($info['active']) && $info['active']) {
@@ -178,7 +178,8 @@ $QA_CHECKSUM_TYPES = [ 'md5', 'sha256' ];
}
}
-})();
+};
+$qa_releases_process();
/* Content */
function show_release_qa($QA_RELEASES) {