Skip to content

Commit d354c5b

Browse files
authored
Merge pull request #627 from bratucornel/master
Add PHP 8 Support
2 parents 612e41c + 8a19e16 commit d354c5b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

manifests/globals.pp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class php::globals (
2020

21-
Optional[Pattern[/^(rh-)?(php)?[57](\.)?[0-9]/]] $php_version = undef,
21+
Optional[Pattern[/^(rh-)?(php)?[578](\.)?[0-9]/]] $php_version = undef,
2222
Optional[Stdlib::Absolutepath] $config_root = undef,
2323
Optional[Stdlib::Absolutepath] $fpm_pid_file = undef,
2424
Optional[Enum['rhscl', 'remi']] $rhscl_mode = undef,
@@ -45,7 +45,7 @@
4545
'Debian': {
4646
if $facts['os']['name'] == 'Ubuntu' {
4747
case $globals_php_version {
48-
/^[57].[0-9]/: {
48+
/^[578].[0-9]/: {
4949
$default_config_root = "/etc/php/${globals_php_version}"
5050
$default_fpm_pid_file = "/var/run/php/php${globals_php_version}-fpm.pid"
5151
$fpm_error_log = "/var/log/php${globals_php_version}-fpm.log"
@@ -69,7 +69,8 @@
6969
} else {
7070
case $globals_php_version {
7171
/^5\.6/,
72-
/^7\.[0-9]/: {
72+
/^7\.[0-9]/,
73+
/^8\.[0-9]/: {
7374
$default_config_root = "/etc/php/${globals_php_version}"
7475
$default_fpm_pid_file = "/var/run/php/php${globals_php_version}-fpm.pid"
7576
$fpm_error_log = "/var/log/php${globals_php_version}-fpm.log"

0 commit comments

Comments
 (0)