Skip to content
Browse files

Special case: xdebug

  • Loading branch information...
1 parent b63b3a2 commit b526dd3ad0431107de85cbf87227c2950f57cd83 @till committed Aug 26, 2012
Showing with 8 additions and 4 deletions.
  1. +8 −4 php/providers/pecl.rb
View
12 php/providers/pecl.rb
@@ -16,10 +16,14 @@
package = new_resource.name
ini_file = "/usr/local/etc/php/#{new_resource.name}.ini"
- execute "enable PHP extension #{package}" do
- command "echo 'extension=#{package}.so' >> #{ini_file}"
- not_if do
- ::File.exists?(ini_file)
+ if package == "xdebug"
+ ::Chef::Log.debug("Need to use zend_extension")
+ else
+ execute "enable PHP extension #{package}" do
+ command "echo 'extension=#{package}.so' >> #{ini_file}"
+ not_if do
+ ::File.exists?(ini_file)
+ end
end
end
end

0 comments on commit b526dd3

Please sign in to comment.
Something went wrong with that request. Please try again.