Zabbix 4.0.X frontend requires PHP 7

XMLWordPrintable

    • Type: Problem report
    • Resolution: Duplicate
    • Priority: Trivial
    • None
    • Affects Version/s: 4.0.28
    • Component/s: Frontend (F)
    • None
    • Environment:
      cat /etc/centos-release
      CentOS Linux release 7.9.2009 (Core)

      rpm -q php
      php-5.4.16-48.el7.x86_64

      Steps to reproduce:
      Install Zabbix 4.0.28 under CentOS 7.
      Try to access any graph.

      Result:
      Graphs do not work.

      Expected:
      According to:
      https://www.zabbix.com/documentation/4.0/manual/installation/requirements
      Zabbix 4.0 should work under PHP 5.4.0

      $ grep ": array" include/classes/graphdraw/CLineGraphDraw.php
      private function getOptimalDateTimeIntervalSpec(int $pref_sub_interval, float $min_sub_interval): array {
      private function getDateTimeIntervals(int $start, int $end, DateInterval $interval): array {

      Looks like Zabbix 4.0 is using PHP 7 features:
      https://www.tutorialspoint.com/php7/php7_returntype_declarations.htm

      Please clean PHP code from non supported features.

            Assignee:
            Zabbix Support Team
            Reporter:
            Rob Northen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: