Skip to content

Commit ccd87b8

Browse files
committed
[php] Laravel update to PHP8.4
1 parent cbb6952 commit ccd87b8

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

frameworks/PHP/laravel/benchmark_config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@
160160
"database_os": "Linux",
161161
"display_name": "laravel-ripple",
162162
"notes": "",
163-
"versus": "php"
163+
"versus": "php",
164+
"tags": ["broken"]
164165
}
165166
}]
166167
}

frameworks/PHP/laravel/deploy/conf/cli-php.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ memory_limit = 512M
1313
opcache.jit_buffer_size = 128M
1414
opcache.jit = tracing
1515

16-
disable_functions=header,header_remove,headers_sent,http_response_code,setcookie,session_create_id,session_id,session_name,session_save_path,session_status,session_start,session_write_close,session_regenerate_id,set_time_limit
16+
disable_functions=header,header_remove,headers_sent,headers_list,http_response_code,setcookie,session_create_id,session_id,session_name,session_save_path,session_status,session_start,session_write_close,session_regenerate_id,session_unset,session_get_cookie_params,session_set_cookie_params,set_time_limit

frameworks/PHP/laravel/laravel-laravel-s.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM phpswoole/swoole:5.1.3-php8.3
1+
FROM phpswoole/swoole:php8.4
22

33
RUN docker-php-ext-install pcntl opcache curl > /dev/null
44

frameworks/PHP/laravel/laravel-swoole.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM phpswoole/swoole:5.1.3-php8.3
1+
FROM phpswoole/swoole:php8.4
22

33
RUN docker-php-ext-install pcntl opcache curl > /dev/null
44

frameworks/PHP/laravel/laravel-workerman.dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null && \
77
apt-get update -yqq > /dev/null && apt-get upgrade -yqq > /dev/null
88

99
RUN apt-get install -yqq git unzip \
10-
php8.3-cli php8.3-mysql php8.3-mbstring php8.3-xml php8.3-curl > /dev/null
10+
php8.4-cli php8.4-mysql php8.4-mbstring php8.4-xml php8.4-curl > /dev/null
1111

1212
COPY --from=composer --link /usr/bin/composer /usr/local/bin/composer
1313

14-
RUN apt-get install -y php-pear php8.3-dev libevent-dev > /dev/null
15-
RUN pecl install event-3.1.3 > /dev/null && echo "extension=event.so" > /etc/php/8.3/cli/conf.d/event.ini
14+
RUN apt-get install -y php-pear php8.4-dev libevent-dev > /dev/null
15+
RUN pecl install event-3.1.4 > /dev/null && echo "extension=event.so" > /etc/php/8.4/cli/conf.d/event.ini
1616

1717
WORKDIR /laravel
1818
COPY --link . .
@@ -26,7 +26,7 @@ RUN mkdir -p bootstrap/cache \
2626
RUN composer require joanhey/adapterman --update-no-dev --no-scripts --quiet
2727
RUN php artisan optimize
2828

29-
COPY --link deploy/conf/cli-php.ini /etc/php/8.3/cli/php.ini
29+
COPY --link deploy/conf/cli-php.ini /etc/php/8.4/cli/php.ini
3030

3131
EXPOSE 8080
3232

frameworks/PHP/laravel/laravel.dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null && \
77
apt-get update -yqq > /dev/null && apt-get upgrade -yqq > /dev/null
88

99
RUN apt-get install -yqq nginx git unzip \
10-
php8.3-cli php8.3-fpm php8.3-mysql php8.3-mbstring php8.3-xml php8.3-curl > /dev/null
10+
php8.4-cli php8.4-fpm php8.4-mysql php8.4-mbstring php8.4-xml php8.4-curl > /dev/null
1111

1212
COPY --from=composer --link /usr/bin/composer /usr/local/bin/composer
1313

14-
COPY --link deploy/conf/* /etc/php/8.3/fpm/
14+
COPY --link deploy/conf/* /etc/php/8.4/fpm/
1515
WORKDIR /laravel
1616
COPY --link . .
1717

18-
RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/8.3/fpm/php-fpm.conf ; fi;
18+
RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/8.4/fpm/php-fpm.conf ; fi;
1919

2020
RUN mkdir -p bootstrap/cache \
2121
storage/logs \
@@ -29,7 +29,7 @@ RUN php artisan optimize
2929
EXPOSE 8080
3030

3131
# Uncomment next line for Laravel console error logging to be viewable in docker logs
32-
# RUN echo "catch_workers_output = yes" >> /etc/php/8.3/fpm/php-fpm.conf
32+
# RUN echo "catch_workers_output = yes" >> /etc/php/8.4/fpm/php-fpm.conf
3333

34-
CMD service php8.3-fpm start && \
34+
CMD service php8.4-fpm start && \
3535
nginx -c /laravel/deploy/nginx.conf

0 commit comments

Comments
 (0)