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

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

    XMLWordPrintable

    Details

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

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: