Browse Source

[reactphp] Update to php 8.1 (#6901)

Joan Miquel 3 years ago
parent
commit
b7e04b260d

+ 1 - 1
frameworks/PHP/reactphp/benchmark_config.json

@@ -13,7 +13,7 @@
       "classification": "Platform",
       "classification": "Platform",
       "framework": "reactphp",
       "framework": "reactphp",
       "language": "PHP",
       "language": "PHP",
-      "flavor": "PHP7",
+      "flavor": "PHP8.1",
       "database": "MySQL",
       "database": "MySQL",
       "orm": "Raw",
       "orm": "Raw",
       "platform": "reactphp",
       "platform": "reactphp",

+ 4 - 4
frameworks/PHP/reactphp/reactphp.dockerfile

@@ -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 LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
 RUN apt-get update -yqq > /dev/null && \
 RUN apt-get update -yqq > /dev/null && \
     apt-get install -yqq git unzip wget curl build-essential \
     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!
 # An extension is required!
 # We deal with concurrencies over 1k, which stream_select doesn't support.
 # 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 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 libuv1-dev > /dev/null
 RUN apt-get install -y libevent-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
 ADD ./ /reactphp
 WORKDIR /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
 COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer