Browse Source

Update php5 to v5.6.30 (#2742)

* Update php5 to v5.6.30
PHP 5.5.x reached end of life 9 months ago

* Update yaf

* Updated yaf to v2.3.5

* PECL installs fails
for versions 2.3.3 - 2.3.5
Installed using tgz
Added re2c, required to build PHP
Joan Miquel 8 years ago
parent
commit
a910d6c038

+ 11 - 2
toolset/setup/linux/frameworks/yaf.sh

@@ -4,10 +4,19 @@ fw_depends php5
 
 fw_installed yaf && return 0
 
+VERSION="2.3.5"
 # Enable the PHP yaf extension
 sed -i 's|;extension=yaf.so|extension=yaf.so|g' $PHP_HOME/lib/php.ini
-printf "\n" | $PHP_HOME/bin/pecl -q install -f yaf-2.2.9
+# pecl install make fail
+#printf "\n" | $PHP_HOME/bin/pecl install -f yaf-2.3.5
+
+fw_get -O http://pecl.php.net/get/yaf-${VERSION}.tgz
+fw_untar yaf-${VERSION}.tgz
+cd yaf-${VERSION}
+phpize
+./configure
+make install
 
 echo "" > $IROOT/yaf.installed
 
-source $IROOT/yaf.installed
+source $IROOT/yaf.installed

+ 1 - 1
toolset/setup/linux/languages/php/php5.sh

@@ -8,7 +8,7 @@ RETCODE=$(fw_exists ${IROOT}/php5.installed)
   source $IROOT/php5.installed
   return 0; }
 
-VERSION="5.5.17"
+VERSION="5.6.30"
 PHP_HOME=$IROOT/php-$VERSION
 
 # Precaution, unlikely to happen.

+ 1 - 1
toolset/setup/linux/prerequisites.sh

@@ -28,7 +28,7 @@ sudo apt-get -qqy install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options:
   libpq-dev mlton \
   cloc dstat                        `# Collect resource usage statistics` \
   python-dev \
-  python-pip
+  python-pip re2c
 
 sudo pip install colorama==0.3.1
 # Version 2.3 has a nice Counter() and other features