Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(dev/drupal#79) CRM_Upgrade_Form - Raise MINIMUM_PHP_VERSION from 5.6 to 7.0 #15082

Merged
merged 1 commit into from
Aug 20, 2019

Conversation

totten
Copy link
Member

@totten totten commented Aug 20, 2019

This version requirement officially went up to PHP 7.0 circa Civi 5.14. However, at that time, the upgrade metadata was kept at PHP 5.6 to allow somewhat softer landing for stragglers. That's no longer possible in 5.16+, so this just updates the requirement.

Before

When upgrading via drush or Drupal web UI to Civi 5.16+ on PHP 5.6, the Civi class-loader fails to initialize.

Parse error: syntax error, unexpected ':', expecting '{' 
in /Users/myuser/bknix/build/dmaster/web/sites/all/modules/civicrm/vendor/league/csv/src/functions.php on line 33

(Approximate call-path: civicrm.drush.inc | civicrm.module => civicrm.settings.php =>
CRM_Core_ClassLoader => vendor/autoload.php => vendor/league/csv/src/functions.php)

After

It still fails, but at least the metadata is accurate.

There will be a separate PR for civicrm-drupal.git to use this metadata and present a clearer error-message.

… to 7.0

This version requirement officially went up to PHP 7.0 circa Civi 5.14.
However, at that time, the upgrade metadata was kept at PHP 5.6 to allow somewhat
softer landing for stragglers. That's no longer possible in 5.16+, so this
just updates the requirement.

Before
------

When upgrading via drush to Civi 5.16+ on PHP 5.6, the Civi class-loader fails to initialize.

```
Parse error: syntax error, unexpected ':', expecting '{' in /Users/totten/bknix/build/dmaster/web/sites/all/modules/civicrm/vendor/league/csv/src/functions.php on line 33
```

(Approximate call-path: `civicrm.drush.inc` => `civicrm.settings.php` =>
`CRM_Core_ClassLoader` => `vendor/autoload.php` => `vendor/league/csv/src/functions.php`)

After
-----

It still fails, but at least the metadata is accurate.

There will be a separate patch in another repo to make `drush` use this
metadata and present a better error.
@civibot
Copy link

civibot bot commented Aug 20, 2019

(Standard links)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants