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

Zabbix 4.0.X frontend requires PHP 7

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 4.0.28
    • Frontend (F)
    • None
    • 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.

            zabbix.support Zabbix Support Team
            robnorthen Rob Northen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: