I can't wrap my head around this problem. Someone please help! 🙁
I get completely different error results on my production (v5.2.0) and development (v5.2.5) servers for the same code.
I have set the following error level in the code:
error_reporting(E_ALL & ~E_NOTICE);
On my development server the application runs perfectly with no errors or warnings, while on the production server I get ton of these header warnings:
Warning: Cannot modify header information - headers already sent
Surely I can configure the production server so it runs my code exactly the same as it currently does on my development server?
My other question is: surely error_reporting() will override the settings in php.ini? I don't understand why after applying the same error reporting levels in my code I still get different error results. I would expect it to be an exact replica!