Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-1729

Invalid use of class constant by object reference

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.0
    • Fix Version/s: 3.5.1
    • Component/s: None
    • Labels:
      None

      Description

      PHP 5.2 does not support the use of class constants from object references. This was not added until PHP 5.3.

      On PHP 5.2 installations of Blesta, this results in:

      syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting ')' in app/models/packages.php on line 735
      

      Due to:

      $periods = array($Proration::PERIOD_DAY, $Proration::PERIOD_WEEK, $Proration::PERIOD_MONTH, $Proration::PERIOD_YEAR);
      

      Should be:

      $periods = array(Proration::PERIOD_DAY, Proration::PERIOD_WEEK, Proration::PERIOD_MONTH, Proration::PERIOD_YEAR);
      

        Activity

        cody Cody Phillips (Inactive) created issue -
        cody Cody Phillips (Inactive) made changes -
        Field Original Value New Value
        Assignee Cody Phillips [ cody ] Tyson Phillips [ tyson ]
        tyson Tyson Phillips (Inactive) made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        tyson Tyson Phillips (Inactive) made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            cody Cody Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/Jul/15