[ZBX-9197] "array_fill_keys" PHP function is missing in declared supported PHP version Created: 2015 Jan 08  Updated: 2017 May 30  Resolved: 2015 Jan 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 2.0.14
Fix Version/s: 2.0.15rc1

Type: Incident report Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: php, regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   

Function "array_fill_keys" is supported for (PHP 5 >= 5.2.0)
http://php.net/manual/en/function.array-fill-keys.php

Zabbix 2.0 doc requires PHP 5.1.6 or later
https://www.zabbix.com/documentation/2.0/manual/installation/requirements#software

But in ZBX-6174 we've started to use the function for 2.0 branch too (for 2.0.14).

We have to resolve this case.
Of course we could just update our doc, but would be that correct ?
It for example would be a problem for CentOS5 which has PHP 5.1.6 as latest version.



 Comments   
Comment by Alexander Vladishev [ 2015 Jan 13 ]

Symptoms:

"PHP Fatal error: Call to undefined function array_fill_keys() in api/classes/CTrigger.php on line 2074"
Comment by Alexander Vladishev [ 2015 Jan 13 ]

Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-9197

Comment by Ivo Kurzemnieks [ 2015 Jan 13 ]

(1) No translation string changes.

sasha CLOSED

Comment by Ivo Kurzemnieks [ 2015 Jan 13 ]

TESTED,
but don't forget to close (1).

Comment by Alexander Vladishev [ 2015 Jan 13 ]

Fixed in pre-2.0.15 r51546.

Generated at Fri Mar 29 08:32:36 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.