From 81c4b48290e908c72119be5494fe57ced60e10eb Mon Sep 17 00:00:00 2001 From: Lukas Schneider Date: Thu, 6 Aug 2015 10:42:10 +0200 Subject: [PATCH] added setting a variable which is necessary for php 5.6 --- drupal-ti | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drupal-ti b/drupal-ti index c9b8d1f..af46113 100755 --- a/drupal-ti +++ b/drupal-ti @@ -50,6 +50,12 @@ fi # Include the environment specific variables. export DRUPAL_TI_SCRIPT_DIRS="$DRUPAL_TI_SCRIPT_DIR_BEFORE $DRUPAL_TI_SCRIPT_DIR $DRUPAL_TI_SCRIPT_DIR_AFTER" +# Set necessary envrionment variable for some modules on 5.6 (like REST). +if [ $(phpenv version-name) == '5.6' ] +then + echo "always_populate_raw_post_data=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; +fi + # In case a '--' command was given, just include the given command with vars set. if [[ "$CMD" == '--'* ]] then