I added a piece of code that should throw a warning in php
foreach (null as $not_possible) {}
to ensure that my php is setup to report warnings i added this line right before the code above
error_reporting(E_ALL);
this way i don't have to rely on a correctly configured php.ini
Still, as i step through the code over the offending line, php allows me to continue. I would have expected it to suspend execution, but instead it carries on. What is wrong about my setup/reasoning ?
NOTE: I did set error_reporting = E_ALL and display_errors = On in my php.ini file and restarted php. Setting error_reporting(E_ALL);
in code was to remove further doubts