Skip to content

Commit fcb1ba9

Browse files
authored
Add correct version of php for el9 (#361)
* Add correct version of php for el9 --------- Signed-off-by: Mike van Goor <[email protected]>
1 parent be26798 commit fcb1ba9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ This file is used to list changes made in each version of the PHP cookbook.
66

77
Standardise files with files in sous-chefs/repo-management
88

9+
- Correct the php version for rhel9. Visible in the fpm pool
10+
911
## 10.0.2 - *2024-05-23*
1012

1113
- Fix typos in documentation for `php_install` and `php_ini` resources

libraries/helpers.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@ def php_pecl
147147
def php_version
148148
case node['platform_family']
149149
when 'rhel'
150-
'7.2'
150+
if node['platform_version'].to_i >= 9
151+
'8.0'
152+
else
153+
'7.2'
154+
end
151155
when 'amazon'
152156
'8.2'
153157
when 'debian'

0 commit comments

Comments
 (0)