Permalink
Browse files

Preinstalled PECL extensions are not enabled by default.

  • Loading branch information...
1 parent 0784f16 commit 182afa68e2d14d797f2336f452a574ba85072fff @loicfrering loicfrering committed Mar 5, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 ci_environment/php/recipes/extensions.rb
@@ -13,3 +13,12 @@
action :install
end
end
+
+node.php.multi.versions.each do |php_version|
+ bash "disable preinstalled PECL extensions for PHP #{php_version}" do
+ user node.travis_build_environment.user
+ group node.travis_build_environment.group
+ environment Hash["HOME" => node.travis_build_environment.home]
+ code "sed -i '/^extension=/d' $HOME/.phpenv/versions/#{php_version}/etc/php.ini"
+ end
+end

0 comments on commit 182afa6

Please sign in to comment.