I've got a wired problem. After I set display_errors to on production enviroment then AJAX request with a PHP script returns apache server error 500 and absolutely nothing works. After I place it to at least one then fact is 200 and everything appears to become fine.

Real question is what's the link between display_errors and server error number. I do not have it and php.com does not explain this whatsoever.

Furthermore I've set error_log but there's no erros drenched either in display_errors is placed 1 or . Does anybody have this issue before?

Real question is what's the link between display_errors and server error number. I do not have it and php.com does not explain this whatsoever.

display_errors is really a PHP internal method that's combined with errors originating from PHP. Server errors are originating from Apache and don't directly connect with PHP* (list of HTTP Status Codes)

* – although PHP has the capacity to send HTTP Status Codes