Skip to content

Commit 4f48c6f

Browse files
authored
[php] Comet update to PHP 8.5 (TechEmpower#10309)
1 parent 0dedb6f commit 4f48c6f

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

frameworks/PHP/comet/app.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
$app->init(
2525
function() {
2626
ORM::init();
27-
Storage::$date = gmdate(DATE_RFC7231);
27+
Storage::$date = gmdate('D, d M Y H:i:s \G\M\T');
2828
Timer::add(1, function() {
29-
Storage::$date = gmdate(DATE_RFC7231);
29+
Storage::$date = gmdate('D, d M Y H:i:s \G\M\T');
3030
});
3131
});
3232

frameworks/PHP/comet/comet-mysql.dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /de
66
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null && \
77
apt-get update -yqq > /dev/null && apt-get upgrade -yqq > /dev/null
88

9-
RUN apt-get install -yqq php8.3-cli php8.3-xml php8.3-mysql php8.3-mbstring > /dev/null
9+
RUN apt-get install -yqq php8.5-cli php8.5-xml php8.5-mysql php8.5-mbstring > /dev/null
1010

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

13-
RUN apt-get install -y php-pear php8.3-dev libevent-dev git > /dev/null
14-
RUN pecl install event-3.1.3 > /dev/null && echo "extension=event.so" > /etc/php/8.3/cli/conf.d/event.ini
13+
RUN apt-get install -y php-pear php8.5-dev libevent-dev git > /dev/null
14+
RUN pecl install event-3.1.4 > /dev/null && echo "extension=event.so" > /etc/php/8.5/cli/conf.d/event.ini
1515

16-
COPY php.ini /etc/php/8.3/cli/php.ini
16+
COPY php.ini /etc/php/8.5/cli/php.ini
1717

1818
ADD ./ /comet
1919
WORKDIR /comet

frameworks/PHP/comet/comet.dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /de
66
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null && \
77
apt-get update -yqq > /dev/null && apt-get upgrade -yqq > /dev/null
88

9-
RUN apt-get install -yqq php8.4-cli php8.4-pgsql php8.4-xml php8.4-mbstring > /dev/null
9+
RUN apt-get install -yqq php8.5-cli php8.5-pgsql php8.5-xml php8.5-mbstring > /dev/null
1010

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

13-
RUN apt-get install -y php-pear php8.4-dev libevent-dev git > /dev/null
14-
RUN pecl install event-3.1.3 > /dev/null && echo "extension=event.so" > /etc/php/8.4/cli/conf.d/event.ini
13+
RUN apt-get install -y php-pear php8.5-dev libevent-dev git > /dev/null
14+
RUN pecl install event-3.1.4 > /dev/null && echo "extension=event.so" > /etc/php/8.5/cli/conf.d/event.ini
1515

16-
COPY php.ini /etc/php/8.4/cli/php.ini
16+
COPY php.ini /etc/php/8.5/cli/php.ini
1717

1818
ADD ./ /comet
1919
WORKDIR /comet

0 commit comments

Comments
 (0)