[ZBX-10650] "Parse error" in several php files Created: 2016 Apr 12  Updated: 2017 May 30  Resolved: 2016 Apr 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A), Frontend (F)
Affects Version/s: 1.8.22
Fix Version/s: 1.8.23rc1

Type: Incident report Priority: Minor
Reporter: Alexander Vladishev Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: php, syntax
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Zabbix 1.8 required PHP 5.0 or later, but several files does not correspond to the syntax of PHP 5.0:

  • include/triggers.inc.php
  • include/func.inc.php
  • include/classes/class.cvalidator.php
  • include/maps.inc.php
  • include/hosts.inc.php
  • api/classes/class.cmaintenance.php
  • api/classes/class.cscreenitem.php
  • api/classes/class.citem.php
  • api/classes/class.chost.php

Error message:

Parse error: parse error, unexpected T_ARRAY, expecting '&' or T_VARIABLE in include/triggers.inc.php on line 2723
Errors parsing include/triggers.inc.php


 Comments   
Comment by Alexander Vladishev [ 2016 Apr 13 ]

Fixed directly in 1.8 branch r59417.

Comment by Ivo Kurzemnieks [ 2016 Apr 13 ]

(1) No translation string changes.

sasha CLOSED

Comment by Ivo Kurzemnieks [ 2016 Apr 13 ]

TESTED

Comment by Alexander Vladishev [ 2016 Apr 13 ]

Fixed in pre-1.8.23 r59417.

Comment by richlv [ 2016 Sep 24 ]

given that this is one of two already fixed issues for 1.8.23, it is probably worth doing the "goodbye" release for the 1.8 branch

the other is ZBX-10364

Generated at Fri Apr 19 14:13:41 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.