Skip to content

[reactphp] Update to php 8.1 #6901

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frameworks/PHP/reactphp/benchmark_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"classification": "Platform",
"framework": "reactphp",
"language": "PHP",
"flavor": "PHP7",
"flavor": "PHP8.1",
"database": "MySQL",
"orm": "Raw",
"platform": "reactphp",
Expand Down
8 changes: 4 additions & 4 deletions frameworks/PHP/reactphp/reactphp.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /de
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
RUN apt-get update -yqq > /dev/null && \
apt-get install -yqq git unzip wget curl build-essential \
php8.0-cli php8.0-mbstring php8.0-dev php8.0-xml php8.0-curl php8.0-mysql > /dev/null
php8.1-cli php8.1-mbstring php8.1-dev php8.1-xml php8.1-curl php8.1-mysql > /dev/null

# An extension is required!
# We deal with concurrencies over 1k, which stream_select doesn't support.
RUN wget http://pear.php.net/go-pear.phar --quiet && php go-pear.phar
#RUN apt-get install -y libuv1-dev > /dev/null
RUN apt-get install -y libevent-dev > /dev/null
#RUN pecl install uv-0.2.4 > /dev/null && echo "extension=uv.so" > /etc/php/8.0/cli/conf.d/uv.ini
RUN pecl install event-3.0.5 > /dev/null && echo "extension=event.so" > /etc/php/8.0/cli/conf.d/event.ini
#RUN pecl install uv-0.2.4 > /dev/null && echo "extension=uv.so" > /etc/php/8.1/cli/conf.d/uv.ini
RUN pecl install event-3.0.6 > /dev/null && echo "extension=event.so" > /etc/php/8.1/cli/conf.d/event.ini

ADD ./ /reactphp
WORKDIR /reactphp

COPY deploy/conf/* /etc/php/8.0/cli/conf.d/
COPY deploy/conf/* /etc/php/8.1/cli/conf.d/

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

Expand Down