Skip to content

Commit e531612

Browse files
committed
[php] Reactphp update to PHP/8.4
1 parent 0a9ab06 commit e531612

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

frameworks/PHP/reactphp/benchmark_config.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
"tests": [{
44
"default": {
55
"json_url": "/json",
6-
"db_url": "/db",
7-
"query_url": "/query?q=",
8-
"fortune_url": "/fortunes",
9-
"update_url": "/update?q=",
106
"plaintext_url": "/plaintext",
117
"port": 8080,
128
"approach": "Realistic",

frameworks/PHP/reactphp/reactphp.dockerfile

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,33 @@
1-
FROM ubuntu:22.04
1+
FROM ubuntu:24.04
22

33
ARG DEBIAN_FRONTEND=noninteractive
44

55
RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /dev/null
6-
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
6+
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null
77
RUN apt-get update -yqq > /dev/null && \
88
apt-get install -yqq git unzip wget curl build-essential \
9-
php8.3-cli php8.3-mbstring php8.3-dev php8.3-xml > /dev/null
9+
php8.4-cli php8.4-mbstring php8.4-dev php8.4-xml > /dev/null
1010

1111
# An extension is required!
1212
# We deal with concurrencies over 1k, which stream_select doesn't support.
13-
RUN apt-get install -yqq libuv1-dev > /dev/null \
14-
&& pecl install uv-beta > /dev/null \
15-
&& echo "extension=uv.so" > /etc/php/8.3/cli/conf.d/uv.ini
13+
# libuv
14+
# RUN apt-get install -yqq libuv1-dev > /dev/null \
15+
# && pecl install uv-beta > /dev/null \
16+
# && echo "extension=uv.so" > /etc/php/8.4/cli/conf.d/uv.ini
17+
18+
# libevent
19+
RUN apt-get install -y libevent-dev > /dev/null \
20+
&& pecl install event-3.1.4 > /dev/null \
21+
&& echo "extension=event.so" > /etc/php/8.4/cli/conf.d/event.ini
1622

1723
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
1824

19-
COPY deploy/conf/* /etc/php/8.3/cli/conf.d/
25+
COPY --link deploy/conf/* /etc/php/8.4/cli/conf.d/
2026

2127
WORKDIR /reactphp
28+
COPY --link . .
2229

23-
COPY composer.json .
24-
RUN composer install --prefer-dist --optimize-autoloader --no-dev --quiet
25-
26-
COPY . .
30+
RUN composer install --prefer-dist --optimize-autoloader --no-dev
2731

2832
EXPOSE 8080
2933

0 commit comments

Comments
 (0)