Skip to content

Commit

Permalink
Fix php ini discover mechanism.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Jan 26, 2021
1 parent 0fb30e8 commit 960445f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -60,6 +60,7 @@ php_error_reporting: no
php_html_errors: yes
php_log_errors: yes
php_max_input_time: 60
php_max_execution_time: 60
php_output_buffering: 4096
php_register_argc_argv: no
php_request_order: GP
Expand Down
3 changes: 2 additions & 1 deletion tasks/assert.yml
Expand Up @@ -63,7 +63,8 @@
assert:
that:
- php_output_buffering is defined
- php_output_buffering is boolean or php_output_buffering is number
- php_output_buffering in [ "Off", "On" ] or
php_output_buffering is number
quiet: yes

- name: test if php_register_argc_argv is set correctly
Expand Down
2 changes: 1 addition & 1 deletion vars/main.yml
Expand Up @@ -11,4 +11,4 @@ _php_packages:

php_packages: "{{ _php_packages[ansible_distribution] | default(_php_packages['default']) }}"

php_ini_command: "php --ini | grep 'Loaded Configuration File' | awk '{ print $NF }'"
php_ini_command: "php -r 'phpinfo();' | grep 'Loaded Configuration File' | awk '{ print $NF }'"

0 comments on commit 960445f

Please sign in to comment.