Commit 7f6aac3a authored by Guilhem Bonnefille's avatar Guilhem Bonnefille
Browse files

Merge branch 'fix/php-ini-dir' into 'master'

fix: extract only PHP_INI_DIR

See merge request to-be-continuous/php!65
parents 99d6e4ef 1f97c0ca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -463,7 +463,7 @@ stages:

  # appends xdebug.mode=coverage in php.ini file
  function set_xdebug_mode() {
    phpini_path=$(php -i | grep php.ini | sed -e 's/.*=> *//')
    phpini_path=$(php -i | sed -n -e 's/PHP_INI_DIR => *//p')
    echo 'xdebug.mode=coverage' >> "${phpini_path}/conf.d/xdebug_coverage.ini"
    log_info "xdebug.mode=coverage set in \\e[33;1m${phpini_path}/conf.d/xdebug_coverage.ini\\e[0m"
  }