CMS MADE SIMPLE FORGE

CGExtensions

 

[#12201] CGExtensions PHP 5.6 compatibility issue

avatar
Created By: Deleted User (deleteduser_11200)
Date Submitted: Mon Dec 09 06:55:23 -0500 2019

Assigned To: Robert Campbell (calguy1000)
Version: 1.65
CMSMS Version: None
Severity: Trivial
Resolution: Invalid
State: Open
Summary:
CGExtensions PHP 5.6 compatibility issue
Detailed Description:
I know that cmsms recommends PHP 7.1 or 7.2 but for reference I want to report
that CGExtension does not work with PHP 5.6.

PHP Parse error:  syntax error, unexpected ':', expecting ';' or '{' in
/var/www/XXX/website/XXX/public/modules/CGExtensions/CGExtensions.module.php

CGExtension is using object/type hinting (internal_utils) lingo PHP 5.6 does not
understand:

   protected function get_utils() : internal_utils
    {
        static $_obj;
        if( !$_obj ) $_obj = new internal_utils($this->get_cge());
        return $_obj;
    }

Anyhow this issue will resolve itself when running CMSMS / CGExtensions under a
current PHP version.


History

Comments
avatar
Date: 2019-12-09 13:48
Posted By: Robert Campbell (calguy1000)

As mentioned this is not a valid bug report as CGExtensions now requires PHP
7.2+
The PHP version is deteced on install and upgrade
Only grandfathered installations or installations migrated from another host
would not encounter an error during the install/upgrade process
      
Updates

Updated: 2019-12-09 13:48
resolution_id: => 9