Is there a way to specify in php.ini or apache level that the script execution should halt on any warnings? I tried searching through google and stackoverflow but couldn’t find any relevant information yet. I do know about the set_error_handler() function but I am looking to do this at the php.ini level.
Advertisement
Answer
So like always it’s a little difficult to prove a negative like you’re asking. About 14 seconds of googling yields the complete list of php.ini directives:
http://www.php.net/manual/en/ini.list.php
There are only 4 instances of the word ‘warning’ on this page, so it looks like that exotic idea is not an option.