Skip to content

Commit 321ced5

Browse files
authored
Merge pull request #475 from codecrafters-io/andy/upgrade-php
[redis] CC-2055: Upgrade PHP to v8.5
2 parents 10a9252 + c2eb624 commit 321ced5

File tree

12 files changed

+22
-15
lines changed

12 files changed

+22
-15
lines changed

compiled_starters/php/.codecrafters/compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
set -e # Exit on failure
1010

11-
# (This file is empty since PHP programs don't use a compile step)
11+
# (This file is empty since PHP programs don't use a compile step)

compiled_starters/php/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ That's all!
2626

2727
Note: This section is for stages 2 and beyond.
2828

29-
1. Ensure you have `php (7.4)` installed locally
29+
1. Ensure you have `php (8.5)` installed locally
3030
1. Run `./your_program.sh` to run your Redis server, which is implemented in
3131
`app/main.php`.
3232
1. Commit your changes and run `git push origin master` to submit your solution

compiled_starters/php/codecrafters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ debug: false
77
# Use this to change the PHP version used to run your code
88
# on Codecrafters.
99
#
10-
# Available versions: php-8.3
11-
buildpack: php-8.3
10+
# Available versions: php-8.5
11+
buildpack: php-8.5

dockerfiles/php-8.5.Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# syntax=docker/dockerfile:1.7-labs
2+
FROM php:8.5-cli-alpine3.22
3+
4+
# For ext-sockets installation
5+
RUN apk add linux-headers=~6.14.2-r0 --no-cache
6+
7+
RUN docker-php-ext-install pcntl sockets

solutions/php/01-jm1/code/.codecrafters/compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
set -e # Exit on failure
1010

11-
# (This file is empty since PHP programs don't use a compile step)
11+
# (This file is empty since PHP programs don't use a compile step)

solutions/php/01-jm1/code/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ That's all!
2626

2727
Note: This section is for stages 2 and beyond.
2828

29-
1. Ensure you have `php (7.4)` installed locally
29+
1. Ensure you have `php (8.5)` installed locally
3030
1. Run `./your_program.sh` to run your Redis server, which is implemented in
3131
`app/main.php`.
3232
1. Commit your changes and run `git push origin master` to submit your solution

solutions/php/01-jm1/code/codecrafters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ debug: false
77
# Use this to change the PHP version used to run your code
88
# on Codecrafters.
99
#
10-
# Available versions: php-8.3
11-
buildpack: php-8.3
10+
# Available versions: php-8.5
11+
buildpack: php-8.5

solutions/php/02-rg2/code/.codecrafters/compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
set -e # Exit on failure
1010

11-
# (This file is empty since PHP programs don't use a compile step)
11+
# (This file is empty since PHP programs don't use a compile step)

solutions/php/02-rg2/code/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ That's all!
2626

2727
Note: This section is for stages 2 and beyond.
2828

29-
1. Ensure you have `php (7.4)` installed locally
29+
1. Ensure you have `php (8.5)` installed locally
3030
1. Run `./your_program.sh` to run your Redis server, which is implemented in
3131
`app/main.php`.
3232
1. Commit your changes and run `git push origin master` to submit your solution

solutions/php/02-rg2/code/codecrafters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ debug: false
77
# Use this to change the PHP version used to run your code
88
# on Codecrafters.
99
#
10-
# Available versions: php-8.3
11-
buildpack: php-8.3
10+
# Available versions: php-8.5
11+
buildpack: php-8.5

0 commit comments

Comments
 (0)