I need to test some functions on a real server, and it is obvious that they disabled errors at some global level.
The problem is that I canβt work when I donβt know what the error is. How can I make sure that exceptions are displayed, not just 500.
I tried putting these two lines at the top of my script, but it is still empty.
<?php
ini_set('error_reporting', E_ALL);
error_reporting(E_ALL);
throw new Exception('Fatal Error');
source
share