Skip to content

Commit f75181c

Browse files
authored
Merge pull request #35 from nikic/pear-master
Install PEAR on master
2 parents a7b9f3c + a358b6c commit f75181c

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

bin/compile

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
# Function currently not used, kept around in case we need to fetch a specific version due
4+
# to an upstream packaging issues.
35
function fetch_pear() {
46
set +o errexit
57
local tries max_tries
@@ -66,19 +68,15 @@ pushd "${INSTALL_DEST}/${VERSION}"
6668
sudo mkdir -p /usr/local/ssl
6769
sudo wget -O /usr/local/ssl/cert.pem https://curl.haxx.se/ca/cacert.pem
6870

69-
# don't install pear on master or snapshots (issue with php 8.0)
70-
# this could be a temp issue though
71-
if [[ ! $VERSION =~ ^master$ || $VERSION =~ snapshot$ ]]; then
72-
# pear
73-
fetch_pear ${PEAR_VERSION:-'v1.10.12'}
71+
# Fetch latest PEAR phar
72+
curl -fsSL --retry 20 -O http://pear.php.net/go-pear.phar
7473

75-
env TZ=UTC $TRAVIS_BUILD_DIR/bin/install-pear
76-
rm go-pear.phar
77-
"$INSTALL_DEST/$VERSION/bin/pear" config-set php_ini "$INSTALL_DEST/$VERSION/etc/php.ini" system
78-
"$INSTALL_DEST/$VERSION/bin/pear" config-set auto_discover 1
74+
env TZ=UTC $TRAVIS_BUILD_DIR/bin/install-pear
75+
rm go-pear.phar
76+
"$INSTALL_DEST/$VERSION/bin/pear" config-set php_ini "$INSTALL_DEST/$VERSION/etc/php.ini" system
77+
"$INSTALL_DEST/$VERSION/bin/pear" config-set auto_discover 1
7978

80-
"$INSTALL_DEST/$VERSION/bin/pear" channel-update pear.php.net
81-
fi
79+
"$INSTALL_DEST/$VERSION/bin/pear" channel-update pear.php.net
8280

8381
# php-fpm
8482
ln -sv ../sbin/php-fpm bin/php-fpm

0 commit comments

Comments
 (0)