Skip to content

Commit

Permalink
Add PHP 8.3 / Remove PHP 8.1 (#336)
Browse files Browse the repository at this point in the history
* add PHP 8.3 / remove 8.0

* add PHP 8.3 extensions to script

* add PHP 8.3 extensions
  • Loading branch information
Sophie Wigmore authored Nov 29, 2023
1 parent 8319835 commit b63a2e2
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 8 deletions.
9 changes: 4 additions & 5 deletions pipelines/config/dependency-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,6 @@ dependencies:
buildpacks:
php:
lines:
- line: 8.0.X
match: 8.0.\d+
deprecation_date: 2023-11-26
link: http://php.net/supported-versions.php
- line: 8.1.X
match: 8.1.\d+
deprecation_date: 2024-11-25
Expand All @@ -246,10 +242,13 @@ dependencies:
match: 8.2.\d+
deprecation_date: 2025-12-08
link: http://php.net/supported-versions.php
- line: 8.3.X
match: 8.3.\d+
deprecation_date: 2026-11-23
link: http://php.net/supported-versions.php
removal_strategy: keep_latest_released
source_type: php
versions_to_keep: 2
skip_lines_cflinuxfs4: [ '8.0.X' ]
mixins:
'io.buildpacks.stacks.bionic':
- libargon2-0
Expand Down
2 changes: 1 addition & 1 deletion scripts/php-modules/update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def process_extension_file(cache, data, ext_file, dependency_type, f)

def update_modules(&f)
cache = {}
%w[php8-base-extensions.yml php81-extensions-patch.yml php82-extensions-patch.yml].each do |ext_file|
%w[php8-base-extensions.yml php81-extensions-patch.yml php82-extensions-patch.yml php83-extensions-patch.yml].each do |ext_file|
path = File.expand_path("../../tasks/build-binary-new/#{ext_file}")

puts "==> Processing: #{path}"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
extensions:
exclusions:
- name: yaf
version: 3.3.5
md5: 128ecf6c84dd71d59c12d826cc51f0c4
klass: PeclRecipe
additions:
- name: oci8
version: 3.3.0
md5: bbbbb26f1791d1f27ffc05289abee2f3
klass: OraclePeclRecipe
- name: ioncube
version: 13.0.2
md5: 0526cd3702ef25de119e4724d603d773
klass: IonCubeRecipe
2 changes: 2 additions & 0 deletions tasks/build-binary-new/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,8 @@ def execute(binary_builder, stack, source_input, build_input, build_output, arti
patch_file = File.join(php_extensions_dir, 'php81-extensions-patch.yml')
elsif source_input.version.start_with?('8.2.')
patch_file = File.join(php_extensions_dir, 'php82-extensions-patch.yml')
elsif source_input.version.start_with?('8.3.')
patch_file = File.join(php_extensions_dir, 'php83-extensions-patch.yml')
end

php_extensions.patch!(patch_file) if patch_file
Expand Down
16 changes: 16 additions & 0 deletions tasks/build-binary-new/php83-extensions-patch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
extensions:
exclusions:
- name: yaf
version: 3.3.5
md5: 128ecf6c84dd71d59c12d826cc51f0c4
klass: PeclRecipe
additions:
- name: oci8
version: 3.3.0
md5: bbbbb26f1791d1f27ffc05289abee2f3
klass: OraclePeclRecipe
- name: ioncube
version: 13.0.2
md5: 0526cd3702ef25de119e4724d603d773
klass: IonCubeRecipe
4 changes: 2 additions & 2 deletions tasks/update-buildpack-dependency/run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,12 @@ def is_null(value)
php_defaults = nil
if !rebuilt && manifest_name == 'php' && buildpack_name == 'php'
case resource_version
when /^8.0/
varname = 'PHP_80_LATEST'
when /^8.1/
varname = 'PHP_81_LATEST'
when /^8.2/
varname = 'PHP_82_LATEST'
when /^8.3/
varname = 'PHP_83_LATEST'
else
puts "Unexpected version #{resource_version} is not in known version lines."
exit 1
Expand Down

0 comments on commit b63a2e2

Please sign in to comment.