I have looked around and generally PHP error reporting works well, certainly when adding the 3 lines below.
But not always, for example note the line below: echo;. I would think this should output an error pointing to that line? But instead, while testing on two different servers, on one it results in an Internal Server error and on the other the page says "This page isn’t working".
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
echo ;
This happens in more situations and makes debugging a bit of a pain.
Is this expected and does error reporting indeed not always work?
Thanks, Peter