Skip to content

Commit 7837601

Browse files
committed
pear won't install on master/8.0 at the moment
there is an issue with the version of Console_Getopts packaged with PEAR, it packages an old version which uses the each method, which is removed in 8.0
1 parent 7dac1a0 commit 7837601

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

bin/compile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@ php-build -i development "${VERSION}" "${INSTALL_DEST}/${VERSION}"
2020

2121
pushd "${INSTALL_DEST}/${VERSION}"
2222

23-
# pear
24-
curl -fsSL --retry 20 -O http://pear.php.net/go-pear.phar
25-
26-
env TZ=UTC $TRAVIS_BUILD_DIR/bin/install-pear
27-
rm go-pear.phar
28-
"$INSTALL_DEST/$VERSION/bin/pear" config-set php_ini "$INSTALL_DEST/$VERSION/etc/php.ini" system
29-
"$INSTALL_DEST/$VERSION/bin/pear" config-set auto_discover 1
23+
# don't install pear on master (issue with php 8.0)
24+
# this could be a temp issue though
25+
if [[ ! $VERSION =~ ^master$ ]]; then
26+
curl -fsSL --retry 20 -O http://pear.php.net/go-pear.phar
27+
28+
env TZ=UTC $TRAVIS_BUILD_DIR/bin/install-pear
29+
rm go-pear.phar
30+
"$INSTALL_DEST/$VERSION/bin/pear" config-set php_ini "$INSTALL_DEST/$VERSION/etc/php.ini" system
31+
"$INSTALL_DEST/$VERSION/bin/pear" config-set auto_discover 1
32+
fi
3033

3134
# php-fpm
3235
ln -sv $PWD/sbin/php-fpm $PWD/bin/php-fpm

0 commit comments

Comments
 (0)