@@ -47,17 +47,20 @@ if [[ ${SWITCH_TO_PHP:0:3} == "5.2" ]] || [[ ${SWITCH_TO_PHP:0:3} == "5.3" ]]; t
4747 $HOME /php-utils-bin/phpbrew init
4848 $HOME /php-utils-bin/phpbrew known --old
4949
50+ # fetch the build tarballs manually
51+ mkdir -p $HOME /.phpbrew/distfiles
52+ curl -L -o $HOME /.phpbrew/distfiles/php-5.2.17.tar.bz2 https://museum.php.net/php5/php-5.2.17.tar.bz2
53+ curl -L -o $HOME /.phpbrew/distfiles/php-5.3.29.tar.bz2 https://museum.php.net/php5/php-5.3.29.tar.bz2
54+
5055 # build PHP5.2
5156 echo ' Installing PHP 5.2...'
52- $HOME /php-utils-bin/phpbrew install --patch ${THIS_DIR} /patches/node.patch --patch ${THIS_DIR} /patches/openssl.patch 5.2 +default +mysql +pdo \
53- +gettext +phar +openssl -- --with-openssl-dir=/usr/include/openssl --enable-spl --with-mysql --with-mysqli=/usr/bin/mysql_config --with-pdo-mysql=/usr \
54- > /dev/null
57+ $HOME /php-utils-bin/phpbrew install --patch ${THIS_DIR} /patches/node.patch --patch ${THIS_DIR} /patches/openssl.patch 5.2.17 +default +mysql +pdo \
58+ +gettext +phar +openssl -- --with-openssl-dir=/usr/include/openssl --enable-spl --with-mysql --with-mysqli=/usr/bin/mysql_config --with-pdo-mysql=/usr
5559
5660 # build PHP5.3
5761 echo ' Installing PHP 5.3...'
58- $HOME /php-utils-bin/phpbrew install --patch ${THIS_DIR} /patches/node.patch --patch ${THIS_DIR} /patches/openssl.patch 5.3 +default +mysql +pdo \
59- +gettext +phar +openssl -- --with-openssl-dir=/usr/include/openssl --enable-spl --with-mysql --with-mysqli=/usr/bin/mysql_config --with-pdo-mysql=/usr \
60- > /dev/null
62+ $HOME /php-utils-bin/phpbrew install --patch ${THIS_DIR} /patches/node.patch --patch ${THIS_DIR} /patches/openssl.patch 5.3.29 +default +mysql +pdo \
63+ +gettext +phar +openssl -- --with-openssl-dir=/usr/include/openssl --enable-spl --with-mysql --with-mysqli=/usr/bin/mysql_config --with-pdo-mysql=/usr
6164
6265 # install PHPUnit 3.6. The only install method available is from source, using git branches old
6366 # enough that they don't rely on any PHP5.3+ features. This clones each needed dependency
@@ -91,8 +94,6 @@ if [[ ${SWITCH_TO_PHP:0:3} == "5.2" ]] || [[ ${SWITCH_TO_PHP:0:3} == "5.3" ]]; t
9194 export PHPBREW_RC_ENABLE=1
9295 source $HOME /.phpbrew/bashrc
9396 phpbrew use 5.2.17
94- pear channel-discover pear.symfony-project.com
95- pear install pear.symfony-project.com/YAML-1.0.2
9697
9798 # manually go back to the system php, we can't use `phpbrew switch-off`
9899 # because we're running a version of php that phpbrew doesn't work with at this point
0 commit comments