From df065415fd1805f272f2c8bb0f8cab6c7076af19 Mon Sep 17 00:00:00 2001
From: Bertrand GAUTHIER <bertrand.gauthier@unicaen.fr>
Date: Tue, 9 Aug 2022 19:56:52 +0200
Subject: [PATCH] Modif configs

---
 config/php/cli/conf.d/99-sygal.ini  | 10 +++++-----
 config/php/fpm/conf.d/99-sygal.ini  |  8 ++++----
 config/php/fpm/pool.d/www.conf.part |  2 +-
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/config/php/cli/conf.d/99-sygal.ini b/config/php/cli/conf.d/99-sygal.ini
index 32542da..12d2973 100644
--- a/config/php/cli/conf.d/99-sygal.ini
+++ b/config/php/cli/conf.d/99-sygal.ini
@@ -20,15 +20,15 @@ max_execution_time = 240
 memory_limit = 2048M
 
 
-;# Xdebug v3
+# Xdebug v3
 ;xdebug.mode = develop,debug
 ;xdebug.client_host = localhost
 ;xdebug.client_port = 9003
 ;xdebug.start_with_request = yes
 ;xdebug.remote_handler = dbgp
 ;xdebug.discover_client_host = true
-;xdebug.var_display_max_children = 1024
-;xdebug.var_display_max_data = -1
-;xdebug.max_nesting_level = 256
-;# Attention: trop diminuer 'max_nesting_level' peut causer une erreur 'Maximum function nesting level of x reached'
 
+xdebug.cli_color = 1
+;xdebug.var_display_max_data = 512       # controls how large strings can be before they're truncated
+;xdebug.var_display_max_depth = 3        # controls how many levels deep into a data structure information is shown.
+;xdebug.var_display_max_children = 1024  # controls how many array elements or object properties are shown.
diff --git a/config/php/fpm/conf.d/99-sygal.ini b/config/php/fpm/conf.d/99-sygal.ini
index 4bfa093..a3a869f 100644
--- a/config/php/fpm/conf.d/99-sygal.ini
+++ b/config/php/fpm/conf.d/99-sygal.ini
@@ -38,8 +38,8 @@ xdebug.client_port = 9003
 xdebug.start_with_request = trigger
 xdebug.remote_handler = dbgp
 xdebug.discover_client_host = true
-xdebug.var_display_max_children = 1024
-xdebug.var_display_max_data = -1
-xdebug.max_nesting_level = 256
-# Attention: trop diminuer 'max_nesting_level' peut causer une erreur 'Maximum function nesting level of x reached'
 
+xdebug.cli_color = 1
+xdebug.var_display_max_data = 512       # controls how large strings can be before they're truncated
+xdebug.var_display_max_depth = 1        # controls how many levels deep into a data structure information is shown.
+xdebug.var_display_max_children = 1024  # controls how many array elements or object properties are shown.
diff --git a/config/php/fpm/pool.d/www.conf.part b/config/php/fpm/pool.d/www.conf.part
index 031d814..015d427 100644
--- a/config/php/fpm/pool.d/www.conf.part
+++ b/config/php/fpm/pool.d/www.conf.part
@@ -5,5 +5,5 @@
 catch_workers_output = yes
 
 php_flag[display_errors] = on
-php_admin_value[error_log] = ${FPM_PHP_LOG_FILE}
+php_admin_value[error_log] = /var/log/php-fpm.log
 php_admin_flag[log_errors] = on
-- 
GitLab