1. 14 Oct, 2019 3 commits
  2. 09 Oct, 2019 1 commit
  3. 06 Oct, 2019 1 commit
  4. 01 Sep, 2019 1 commit
  5. 21 Aug, 2019 3 commits
  6. 20 Aug, 2019 3 commits
    • kcristiano's avatar
      Merge pull request #161 from totten/5.17-php-min · 89fb4a4d
      kcristiano authored
      (drupal#79) Fail more gracefully when upgrading on PHP 5.x
      89fb4a4d
    • totten's avatar
      Fail more gracefully when installing on PHP 5.x · c3b04668
      totten authored
      c3b04668
    • totten's avatar
      (drupal#79) Fail more gracefully when upgrading on PHP 5.x · 71aa9bee
      totten authored
      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 Civi
      5.16+,
      
      This just gives a clearer error when someone tries to upgrade with PHP 5.x.
      
      Before
      ------
      
      When accessing a Civi-WordPress site on PHP 5.6 (or running wp-cli), 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.php` => `civicrm.settings.php` =>
      `CRM_Core_ClassLoader` => `vendor/autoload.php` => `vendor/league/csv/src/functions.php`)
      
      After
      -----
      
      When accessing a Civi-WordPress site on PHP 5.6 (or running wp-cli), the error message is:
      
      ```
      CiviCRM requires PHP version 7.0.0 or greater. You are running PHP version 5.6.38
      ```
      
      Comments
      --------
      
      The canonical representation of the minimum PHP version is in
      `$civicrm_root/CRM/Upgrade/Form.php`.  However, correctly reading that
      metadata requires loading `civicrm.settings.php`, which triggers the crash.
      
      To work around this, this patch reproduces the constant and uses a unit-test
      to ensure its continued accuracy.
      71aa9bee
  7. 14 Jun, 2019 2 commits
  8. 13 Jun, 2019 1 commit
  9. 12 Jun, 2019 1 commit
  10. 07 Jun, 2019 1 commit
  11. 06 Jun, 2019 1 commit
  12. 27 Apr, 2019 2 commits
  13. 26 Apr, 2019 1 commit
  14. 25 Apr, 2019 3 commits
  15. 24 Apr, 2019 1 commit
  16. 19 Mar, 2019 1 commit
  17. 15 Mar, 2019 5 commits
  18. 14 Feb, 2019 1 commit
  19. 13 Feb, 2019 3 commits
  20. 31 Jan, 2019 3 commits
  21. 24 Jan, 2019 1 commit
  22. 31 Dec, 2018 1 commit