Skip to content

Commit

Permalink
Twig C is not compatible with PHP 7 (yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
omega8cc committed Feb 21, 2016
1 parent f943ba1 commit 04846b3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 25 deletions.
4 changes: 2 additions & 2 deletions aegir/tools/BOND.sh.txt
Expand Up @@ -551,8 +551,8 @@ update_php_conf() {
fix_php_ini_redis
fix_php_ini_jsmin
fix_php_ini_mailparse
fix_php_ini_twig
fi
fix_php_ini_twig
fix_php_ini_ioncube
fix_php_ini_suhosin
fix_php_ini_yaml
Expand All @@ -561,8 +561,8 @@ update_php_conf() {
fix_php_ini_redis
fix_php_ini_jsmin
fix_php_ini_mailparse
fix_php_ini_twig
fi
fix_php_ini_twig
fix_php_ini_ioncube
fix_php_ini_suhosin
fix_php_ini_yaml
Expand Down
50 changes: 27 additions & 23 deletions lib/functions/php.sh.inc
Expand Up @@ -295,8 +295,8 @@ update_php_conf() {
fix_php_ini_redis
fix_php_ini_jsmin
fix_php_ini_mailparse
fix_php_ini_twig
fi
fix_php_ini_twig
fix_php_ini_ioncube
fix_php_ini_suhosin
fix_php_ini_yaml
Expand All @@ -305,8 +305,8 @@ update_php_conf() {
fix_php_ini_redis
fix_php_ini_jsmin
fix_php_ini_mailparse
fix_php_ini_twig
fi
fix_php_ini_twig
fix_php_ini_ioncube
fix_php_ini_suhosin
fix_php_ini_yaml
Expand Down Expand Up @@ -477,16 +477,18 @@ install_php_extensions() {
touch ${pthLog}/php-pecl-jsmin-${_JSMIN_VRN}-${_T_PHP_VRN}.log
fi
###--------------------###
msg "INFO: Installing Twig C for PHP ${_T_PHP_VRN}..."
cd /var/opt
rm -f -r twig*
get_dev_src "twig-${_TWIGC_VRN}.tar.gz"
cd /var/opt/twig-${_TWIGC_VRN}/ext/twig
st_runner "${_T_PHP_PTH}/phpize" 2> /dev/null
st_runner "sh ./configure --with-php-config=${_T_PHP_CFG}" 2> /dev/null
st_runner "make --quiet" 2> /dev/null
st_runner "make --quiet install" 2> /dev/null
touch ${pthLog}/php-twig-${_TWIGC_VRN}-${_T_PHP_VRN}.log
if [ "$1" != "70" ]; then
msg "INFO: Installing Twig C for PHP ${_T_PHP_VRN}..."
cd /var/opt
rm -f -r twig*
get_dev_src "twig-${_TWIGC_VRN}.tar.gz"
cd /var/opt/twig-${_TWIGC_VRN}/ext/twig
st_runner "${_T_PHP_PTH}/phpize" 2> /dev/null
st_runner "sh ./configure --with-php-config=${_T_PHP_CFG}" 2> /dev/null
st_runner "make --quiet" 2> /dev/null
st_runner "make --quiet install" 2> /dev/null
touch ${pthLog}/php-twig-${_TWIGC_VRN}-${_T_PHP_VRN}.log
fi
###--------------------###
if [ "${_PHP_GEOS}" = "YES" ] || [[ "${_XTRAS_LIST}" =~ "GEO" ]]; then
if [ "$1" != "52" ] && [ "$1" != "70" ]; then
Expand Down Expand Up @@ -682,17 +684,19 @@ update_php_extensions() {
fi
fi
###--------------------###
if [ ! -e "${pthLog}/php-twig-${_TWIGC_VRN}-${_T_PHP_VRN}.log" ]; then
msg "INFO: Installing Twig C upgrade for PHP ${_T_PHP_VRN}..."
cd /var/opt
rm -f -r twig*
get_dev_src "twig-${_TWIGC_VRN}.tar.gz"
cd /var/opt/twig-${_TWIGC_VRN}/ext/twig
st_runner "${_T_PHP_PTH}/phpize" 2> /dev/null
st_runner "sh ./configure --with-php-config=${_T_PHP_CFG}" 2> /dev/null
st_runner "make --quiet" 2> /dev/null
st_runner "make --quiet install" 2> /dev/null
touch ${pthLog}/php-twig-${_TWIGC_VRN}-${_T_PHP_VRN}.log
if [ "$1" != "70" ]; then
if [ ! -e "${pthLog}/php-twig-${_TWIGC_VRN}-${_T_PHP_VRN}.log" ]; then
msg "INFO: Installing Twig C upgrade for PHP ${_T_PHP_VRN}..."
cd /var/opt
rm -f -r twig*
get_dev_src "twig-${_TWIGC_VRN}.tar.gz"
cd /var/opt/twig-${_TWIGC_VRN}/ext/twig
st_runner "${_T_PHP_PTH}/phpize" 2> /dev/null
st_runner "sh ./configure --with-php-config=${_T_PHP_CFG}" 2> /dev/null
st_runner "make --quiet" 2> /dev/null
st_runner "make --quiet install" 2> /dev/null
touch ${pthLog}/php-twig-${_TWIGC_VRN}-${_T_PHP_VRN}.log
fi
fi
###--------------------###
if [ "$1" != "52" ] && [ "$1" != "70" ] \
Expand Down

0 comments on commit 04846b3

Please sign in to comment.