Come vedete per la Notice non c'è lo stack trace, mentre per il Fatal error si.codice:$ php -i | grep log_errors log_errors => On => On log_errors_max_len => 1024 => 1024 $ php -i | grep error_log error_log => /var/log/error.log => /var/log/error.log $ php -i | grep display_errors display_errors => Off => Off $ cat test.php <?php trigger_error(null); throw new Exception; $ php test.php $ tail -n 5 /var/log/error.log [26-Apr-2022 09:06:52 Europe/Berlin] PHP Notice: in /tmp/tmp.FoceFGDBYx/test.php on line 2 [26-Apr-2022 09:06:52 Europe/Berlin] PHP Fatal error: Uncaught Exception in /tmp/tmp.FoceFGDBYx/test.php:3 Stack trace: #0 {main} thrown in /tmp/tmp.FoceFGDBYx/test.php on line 3
Perchè?