Skip to content

Commit d22b11b

Browse files
committed
Use self compiled PHP 5.3.29 to fix OpenSSL
1 parent ce9ff49 commit d22b11b

18 files changed

+11
-23
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525
- name: Test versions and extensions
2626
run: |
2727
php$ver -v | head -n 1
28-
php-cgi$ver -v | head -n 1
2928
php-config$ver --version
3029
phpize$ver -v
3130
php$ver -m
3231
pecl -V
3332
curl -V
33+
php$ver -r "echo file_get_contents('https://repo.packagist.org/packages.json');"
3434
env:
3535
ver: ${{ matrix.php-versions }}
3636
release:
@@ -43,7 +43,7 @@ jobs:
4343
- name: Package and ship
4444
run: |
4545
for v in 5.3 5.4 5.5; do
46-
sudo XZ_OPT=-9 tar cfJ php-$v.tar.xz php-$v
46+
sudo XZ_OPT=-e9 tar cfJ php-$v.tar.xz php-$v
4747
shopt -s nullglob
4848
for f in php-$v.tar.xz; do
4949
sha256sum "$f" >"${f}".sha256sum.txt

php-5.3/deps/curl.so

-70.3 KB
Binary file not shown.

php-5.3/deps/libcurl.so.3

-506 KB
Binary file not shown.
-6.71 MB
Binary file not shown.
6.46 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.

php-5.3/install.sh

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
dpkg_install="sudo DEBIAN_FRONTEND=noninteractive dpkg -i --force-conflicts"
2-
sudo mkdir -p /var/run /run/php
2+
sudo mkdir -p /var/run /run/php ~/php
33
$dpkg_install ./deps/*.deb
4-
$dpkg_install ./*.deb
5-
for tool in php5 php5-cgi php-config5 phpize5; do
6-
if [ -f /usr/bin/"$tool" ]; then
7-
tool_name=${tool/5/}
8-
sudo cp /usr/bin/"$tool" /usr/bin/"$tool_name"5.3
9-
sudo update-alternatives --install /usr/bin/"$tool_name" "$tool_name" /usr/bin/"$tool_name"5.3 50
10-
fi
11-
done
4+
sudo tar xJf ./php-5.3.29.tar.xz -C ~/php
5+
sudo ln -sf ~/php/5.3.29/etc/php.ini /etc/php.ini

php-5.3/php-5.3.29.tar.xz

11.1 MB
Binary file not shown.
-360 KB
Binary file not shown.

0 commit comments

Comments
 (0)