So I have xampp and the thing won't report anything at all... I even forced an error and it didn't do anything...
I used
error_reporting(-1);
ini_set( 'display_errors', 1 );
according to this document http://php.net/manual/en/function.error-reporting.php
also error_reporting(E_ALL);
doesn't do anything either...
Probably you're not getting any 'simple' errors like:
But you do get things like:
According to my thinking hat, this is because if you don't disable logging in your PHP configuration the 'simple' errors will be sent 'nowhere'. In other words: PHP is 'helping' you by not showing any errors because you either defined
log_errors = On
and/orerror_log = 'php_errors.log'
and it's logging all 'real' errors but your's just don't cut it to the 'real' category.If this doesn't help, the thinking hat says: "It can't f* remember, but I sure as heaven/hell know it is somewhere in the PHP or Apache config."
Sure hope my thinking hat helped you out.
EDIT: Tackling this problem might be to find and open php.ini, select all, delete/backspace, save (but keep open) (or save a copy somewhere). Then restart Apache. See if there's any difference. If so, the php configuration is somewhere else. Restore the php file and search your computer or server from the root up for another php.ini.
Also I think you should make sure :
Or in PHP :
In your folder xampp/php create new folder named logs. Go to control panel appache logs click php_error_log it will now ask if you want to create the file.
error_reporting function is sometimes turned off on local servers, for example, Xampp does not support it so you have to go to php.ini and change it there. Hope this helps :).