How php7 outputs error messages

HTTP ERROR 500 is reported after our website is upgraded to php7, but I turn on the error message output and there is no error message output. Here is my error message output code

set_error_handler ("_ errorHandler");
set_exception_handler ("_ exceptionHandler");
register_shutdown_function ("check_for_fatal");
error_reporting (E_USER_ERROR);
error_reporting (E_ALL);
ini_set ("display_errors", "on");
ini_set (" log_errors", "on");

var_dump (error_reporting ());

)
Mar.11,2021

look at the server Log, for example, nginx , just look at access.log and error.log


500 is an internal error on the server. You must not see the error message through the program print. It is recommended that you check the error log file for Nginx,PHP.


ini_set ('display_errors', "on");
not all options can be modified with ini_set. You must change the display_errors in php.ini to on. Thank an Zhengchao for his help and other partners for their reply.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2b566-2ba6e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2b566-2ba6e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?