Skip to content

Commit

Permalink
PHP 8 regexp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-andrii-hurzhii committed Apr 15, 2021
1 parent 342cd17 commit 7c06603
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions manifests/globals.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class php::globals (

Optional[Pattern[/^(rh-)?(php)?[57](\.)?[0-9]/]] $php_version = undef,
Optional[Pattern[/^(rh-)?(php)?[578](\.)?[0-9]/]] $php_version = undef,
Optional[Stdlib::Absolutepath] $config_root = undef,
Optional[Stdlib::Absolutepath] $fpm_pid_file = undef,
$rhscl_mode = undef,
Expand All @@ -44,7 +44,7 @@
'Debian': {
if $facts['os']['name'] == 'Ubuntu' {
case $globals_php_version {
/^[57].[0-9]/: {
/^[578].[0-9]/: {
$default_config_root = "/etc/php/${globals_php_version}"
$default_fpm_pid_file = "/var/run/php/php${globals_php_version}-fpm.pid"
$fpm_error_log = "/var/log/php${globals_php_version}-fpm.log"
Expand All @@ -68,7 +68,8 @@
} else {
case $globals_php_version {
/^5\.6/,
/^7\.[0-9]/: {
/^7\.[0-9]/,
/^8\.[0-9]/: {
$default_config_root = "/etc/php/${globals_php_version}"
$default_fpm_pid_file = "/var/run/php/php${globals_php_version}-fpm.pid"
$fpm_error_log = "/var/log/php${globals_php_version}-fpm.log"
Expand Down

0 comments on commit 7c06603

Please sign in to comment.