nbuchwitz / icingaweb2-module-map

An openstreetmap based map module for host and service state visualization with Icinga Web 2
https://icinga.com/docs/icinga2/latest/doc/13-addons/
GNU General Public License v2.0
81 stars 17 forks source link

Raise php dependency to >= 5.6 #53

Closed nbuchwitz closed 6 years ago

nbuchwitz commented 6 years ago

As older PHP versions (< 5.6) do not support ARRAY_FILTER_USE_KEY, the data point service breaks with an error message:

Use of undefined constant ARRAY_FILTER_USE_KEY - assumed 'ARRAY_FILTER_USE_KEY'

#0 /usr/share/icingaweb2/modules/map/application/controllers/DataController.php(155): Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}(Integer, String, String, Integer, Array)
#1 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Icinga\Module\Map\Controllers\DataController->pointsAction()
#2 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch(String)
#3 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#4 /usr/share/php/Icinga/Application/Web.php(409): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#5 /usr/share/php/Icinga/Application/webrouter.php(104): Icinga\Application\Web->dispatch()
#6 /usr/share/icingaweb2/public/index.php(4): require_once(String)
#7 {main}
nbuchwitz commented 6 years ago

Icingaweb2 requirements https://www.icinga.com/docs/icingaweb2/latest/doc/02-Installation/#installation

nbuchwitz commented 6 years ago

I raised the php dependency to >= 5.6, which is the same as in icingaweb2 (8cbe4f5aca741b8ae68b9ee8588e2311dbb47b9f)