Puppet Function: wmflib::wmf_php_version

Defined in:
modules/wmflib/functions/wmf_php_version.pp
Function type:
Puppet Language

Overview

wmflib::wmf_php_version()Any

SPDX-License-Identifier: Apache-2.0 Return the PHP version used by the Wikimedia wikis based on the Debian release name. This only covers the distros for which we build the internal PHP packages powering the wikis

Returns:

  • (Any)


5
6
7
8
9
10
11
12
# File 'modules/wmflib/functions/wmf_php_version.pp', line 5

function wmflib::wmf_php_version(){

    debian::codename() ? {
        'buster'   => '7.4',
        'bullseye' => '7.4',
        default    => fail('unsupported distro'),
    }
}