Don't need php-config to configure xdebug
parent
dea67d8aea
commit
428e1aa162
|
@ -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
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue