Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-19028

zabbix-web-4.0.28-1.el7.noarch broke CLineGraphDraw.php on CentOS 7 | php 5.4.16

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 4.0.28
    • Fix Version/s: None
    • Component/s: Frontend (F), Server (S)
    • Labels:
    • Environment:
      CentOS 7.9.2009
      PHP 5.4.16

      Description

      Updated zabbix-web to zabbix-web-4.0.28-1.el7.noarch

      errors now present in /var/log/httpd/error_log

      PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /usr/share/zabbix/include/classes/graphdraw/CLineGraphDraw.php on line 1305
       
      private function getOptimalDateTimeIntervalSpec(int $pref_sub_interval, float $min_sub_interval): array {
      There appears to be a PHP 7 return type declaration in a package on CentOS 7 which only supports up to PHP 5.4.16 in the official repositories.

      Manual removal fixed the issue.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              robert_cop Daniel Fulford
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: