Page MenuHomeDevCentral

Upgrade PHP 7.0 to PHP 7.1 on Eglide
Closed, ResolvedPublic

Description

Currently, we provision PHP 7.0.

We should instead provision PHP 7.1. It adds features missing in PHP 7 (iterable, void for example).

Eglide
$ php -v
PHP 7.0.14-2 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.14-2, Copyright (c) 1999-2016, by Zend Technologies
$ apt search php7.1
[…]
php7.1/unstable 7.1.0-5 all
  server-side, HTML-embedded scripting language (metapackage)
[…]
roles/shellserver/userland-software/base.sls
languages:
  pkg:
    - installed
    - pkgs:
      - python3
      {% if grains['os'] == 'Debian' or grains['os'] == 'Ubuntu' %}
      - tcl8.6-dev
      - php7.0
      {% elif grains['os'] == 'FreeBSD' %}
      - tcl86
      - php70
      {% endif %}