Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-19941 PHP 7.1 Compatability
  3. CRM-20466

Fatal errors on PHP 7.1 in api/v3/*.php (breaks API explorer)

    Details

    • Type: Sub-task
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.18
    • Fix Version/s: 4.7.20
    • Component/s: Core CiviCRM
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      Fresh buildkit generated site, PHP7.1.4

      Visiting API explorer results in a messed up page due to a couple of instances where we pass as a reference the result of a function call.

      PHP message: PHP Fatal error: Only variables can be passed by reference in api/v3/MembershipStatus.php on line 112

      PHP7 support: CRM-17789

        Attachments

          Activity

            People

            • Assignee:
              xurizaemon Chris Burgess
              Reporter:
              xurizaemon Chris Burgess
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: