Don't need php-config to configure xdebug

freebsd
Emilien Mantel 2016-03-06 19:23:08 +01:00
parent dea67d8aea
commit 428e1aa162
2 changed files with 0 additions and 11 deletions

View File

@ -13,13 +13,6 @@
- "{{ php_packages }}"
- "{{ php_extra_packages }}"
# Note: only needed for PHP5x + Xdebug
- name: COMMAND | Get PHP extension dir
command: php-config --extension-dir
changed_when: false
register: php_extension_dir
when: php_version == '5.6'
- name: INCLUDE | PHP-FPM
include: fpm.yml
when: php_install_fpm

View File

@ -4,11 +4,7 @@
; configuration for php xdebug module
; priority=20
{% if php_version | version_compare('7.0', 'ge') %}
zend_extension=xdebug.so
{% else %}
zend_extension={{ php_extension_dir.stdout }}/xdebug.so
{% endif %}
{% if xdebug_version.stdout|version_compare('2.3', 'gt') %}
{% endif %}