Skip to content

Commit

Permalink
[php] Update plain PHP-Workerman to PHP8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
joanhey committed Jan 8, 2025
1 parent ddd0952 commit 062171c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion frameworks/PHP/php/deploy/workerman/cli-php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ memory_limit = 512M
opcache.jit_buffer_size=128M
opcache.jit=tracing

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
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
4 changes: 2 additions & 2 deletions frameworks/PHP/php/deploy/workerman/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"require": {
"joanhey/adapterman": "^0.6"
"joanhey/adapterman": "^0.7"
}
}
}
16 changes: 8 additions & 8 deletions frameworks/PHP/php/php-workerman.dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
FROM ubuntu:22.04
FROM ubuntu:24.04

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /dev/null
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null && \
apt-get update -yqq > /dev/null && apt-get upgrade -yqq
apt-get update -yqq > /dev/null && apt-get upgrade -yqq

RUN apt-get install -yqq git unzip \
php8.3 php8.3-common php8.3-cli php8.3-fpm php8.3-mysql > /dev/null
php8.4 php8.4-common php8.4-cli php8.4-fpm php8.4-mysql > /dev/null

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

COPY deploy/workerman/cli-php.ini /etc/php/8.3/cli/php.ini
COPY deploy/workerman/cli-php.ini /etc/php/8.4/cli/php.ini

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

ADD ./ /php
WORKDIR /php
COPY --link . .

COPY deploy/workerman/composer.json ./
RUN composer install --optimize-autoloader --classmap-authoritative --no-dev
RUN composer install --optimize-autoloader --classmap-authoritative --no-dev

COPY deploy/workerman/start.php ./

Expand Down

0 comments on commit 062171c

Please sign in to comment.