Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4a02b6a

Browse files
committedAug 18, 2023
Merge branch 'FriendsOfSymfony1-master'
# Conflicts: # lib/validator/sfValidatorBoolean.class.php
2 parents 8d9bb43 + dc824de commit 4a02b6a

File tree

926 files changed

+68293
-72630
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

926 files changed

+68293
-72630
lines changed
 

‎.docker/php53/Dockerfile

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
FROM buildpack-deps:jessie
2+
3+
ENV PHP_VERSION 5.3.29
4+
5+
# php 5.3 needs older autoconf
6+
RUN set -eux; \
7+
\
8+
apt-get update; \
9+
apt-get install -y \
10+
curl \
11+
autoconf2.13 \
12+
; \
13+
rm -r /var/lib/apt/lists/*; \
14+
\
15+
curl -sSLfO http://launchpadlibrarian.net/140087283/libbison-dev_2.7.1.dfsg-1_amd64.deb; \
16+
curl -sSLfO http://launchpadlibrarian.net/140087282/bison_2.7.1.dfsg-1_amd64.deb; \
17+
dpkg -i libbison-dev_2.7.1.dfsg-1_amd64.deb; \
18+
dpkg -i bison_2.7.1.dfsg-1_amd64.deb; \
19+
rm *.deb; \
20+
\
21+
curl -sSLf "https://php.net/get/php-$PHP_VERSION.tar.bz2/from/this/mirror" -o php.tar.bz2; \
22+
echo 'c4e1cf6972b2a9c7f2777a18497d83bf713cdbecabb65d3ff62ba441aebb0091 php.tar.bz2' | sha256sum -cw --status; \
23+
\
24+
mkdir -p /usr/src/php; \
25+
tar -xf php.tar.bz2 -C /usr/src/php --strip-components=1; \
26+
rm php.tar.bz2*; \
27+
\
28+
cd /usr/src/php; \
29+
./buildconf --force; \
30+
./configure --disable-cgi \
31+
$(command -v apxs2 > /dev/null 2>&1 && echo '--with-apxs2' || true) \
32+
--with-pdo-mysql \
33+
--with-zlib \
34+
--enable-mbstring \
35+
; \
36+
make -j"$(nproc)"; \
37+
make install; \
38+
\
39+
dpkg -r \
40+
bison \
41+
libbison-dev \
42+
; \
43+
apt-get purge -y --auto-remove \
44+
autoconf2.13 \
45+
; \
46+
rm -r /usr/src/php
47+
48+
# Install APC PHP extension
49+
#
50+
RUN set -eux; \
51+
\
52+
pecl install apc-3.1.13; \
53+
echo 'extension=apc.so' >> /usr/local/lib/php.ini; \
54+
\
55+
rm -r /tmp/pear;
56+
57+
CMD ["php", "-a"]

‎.docker/php54/Dockerfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM php:5.4-cli
2+
3+
RUN docker-php-ext-install pdo
4+
RUN docker-php-ext-install pdo_mysql
5+
RUN docker-php-ext-install mbstring
6+
7+
# Install APC PHP extension
8+
#
9+
RUN set -eux; \
10+
pecl install apc-3.1.13; \
11+
docker-php-ext-enable apc; \
12+
rm -r /tmp/pear;
13+
14+
# Install memcache PHP extension
15+
#
16+
ARG MEMCACHE_VERSION
17+
RUN set -eux; \
18+
buildDeps=' \
19+
libzip-dev \
20+
'; \
21+
apt-get update; \
22+
apt-get install -y --no-upgrade --no-install-recommends \
23+
$buildDeps \
24+
; \
25+
\
26+
pecl install memcache-${MEMCACHE_VERSION}; \
27+
docker-php-ext-enable memcache; \
28+
\
29+
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=true \
30+
$buildDeps \
31+
; \
32+
apt-get clean; \
33+
rm -rf /var/lib/apt/lists/*; \
34+
rm -r /tmp/pear

0 commit comments

Comments
 (0)