Browse Source

[php-ngx] Update to Nginx 1.20.0 and use PHP8 JIT (#6580)

* [php-ngx] Update to nginx 1.20.0

* Use php 8 JIT
Joan Miquel 4 years ago
parent
commit
02a9539f98

+ 4 - 4
frameworks/PHP/php-ngx/benchmark_config.json

@@ -10,7 +10,7 @@
       "database": "None",
       "framework": "php-ngx",
       "language": "PHP",
-      "flavor": "PHP7",
+      "flavor": "PHP8 JIT",
       "orm": "Raw",
       "platform": "ngx_php",
       "webserver": "nginx",
@@ -31,7 +31,7 @@
       "database": "MySQL",
       "framework": "php-ngx",
       "language": "PHP",
-      "flavor": "PHP7",
+      "flavor": "PHP8 JIT",
       "orm": "Raw",
       "platform": "ngx_php",
       "webserver": "nginx",
@@ -52,7 +52,7 @@
       "database": "Postgres",
       "framework": "php-ngx",
       "language": "PHP",
-      "flavor": "PHP7",
+      "flavor": "PHP8 JIT",
       "orm": "Raw",
       "platform": "ngx_php",
       "webserver": "nginx",
@@ -73,7 +73,7 @@
       "database": "MySQL",
       "framework": "php-ngx",
       "language": "PHP",
-      "flavor": "PHP7",
+      "flavor": "PHP8 JIT",
       "orm": "Raw",
       "platform": "ngx_php",
       "webserver": "nginx",

+ 4 - 1
frameworks/PHP/php-ngx/deploy/conf/php.ini

@@ -1908,4 +1908,7 @@ opcache.huge_code_pages=1
 
 ; Local Variables:
 ; tab-width: 4
-; End:
+; End:
+
+opcache.jit_buffer_size=128M
+opcache.jit=tracing

+ 1 - 1
frameworks/PHP/php-ngx/php-ngx-async.dockerfile

@@ -11,7 +11,7 @@ RUN apt-get update -yqq > /dev/null && \
 
 ADD ./ ./
 
-ENV NGINX_VERSION 1.19.7
+ENV NGINX_VERSION 1.20.0
 
 RUN git clone -b v0.0.25 --single-branch --depth 1 https://github.com/rryqszq4/ngx_php7.git > /dev/null
 

+ 1 - 1
frameworks/PHP/php-ngx/php-ngx-mysql.dockerfile

@@ -11,7 +11,7 @@ RUN apt-get update -yqq > /dev/null && \
 
 ADD ./ ./
 
-ENV NGINX_VERSION 1.19.7
+ENV NGINX_VERSION 1.20.0
 
 RUN git clone -b v0.0.25 --single-branch --depth 1 https://github.com/rryqszq4/ngx_php7.git > /dev/null
 

+ 1 - 1
frameworks/PHP/php-ngx/php-ngx-pgsql.dockerfile

@@ -11,7 +11,7 @@ RUN apt-get update -yqq > /dev/null && \
 
 ADD ./ ./
 
-ENV NGINX_VERSION 1.19.7
+ENV NGINX_VERSION 1.20.0
 
 RUN git clone -b v0.0.25 --single-branch --depth 1 https://github.com/rryqszq4/ngx_php7.git > /dev/null
 

+ 1 - 1
frameworks/PHP/php-ngx/php-ngx.dockerfile

@@ -10,7 +10,7 @@ RUN apt-get update -yqq > /dev/null && \
                     php8.0-cli php8.0-dev libphp8.0-embed php8.0-mysql nginx > /dev/null
 ADD ./ ./
 
-ENV NGINX_VERSION 1.19.7
+ENV NGINX_VERSION 1.20.0
 
 RUN git clone -b v0.0.25 --single-branch --depth 1 https://github.com/rryqszq4/ngx_php7.git > /dev/null