Syntax error, unexpected ':', expecting ';' in CLineGraphDraw.php

XMLWordPrintable

    • Type: Incident report
    • Resolution: Duplicate
    • Priority: Trivial
    • None
    • Affects Version/s: 4.0.28
    • Component/s: Frontend (F)
    • None
    • Environment:
      Centos 7
      php -v
      PHP 5.4.16 (cli) (built: Apr 1 2020 04:07:17)

      Steps to reproduce:

      1. Update zabbix from 4.0.27 to 4.0.28
      2. Open any Graph

      Result:
      See screenshot...

      In logs:

      PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /usr/share/zabbix/include/classes/graphdraw/CLineGraphDraw.php on line 1305, referer:"

      Tests:

       

      php -l CLineGraphDraw.php.4.0.27 
      No syntax errors detected in CLineGraphDraw.php.4.0.27
      php -l CLineGraphDraw.php.4.0.28
      PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in CLineGraphDraw.php.4.0.28 on line 1305
      Errors parsing CLineGraphDraw.php.4.0.28
      

       

      Expected:
      Graph is displayed

            Assignee:
            Andrey Tocko (Inactive)
            Reporter:
            romale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: