error_get_last() returns null after set_error_handler(); php 7.0
问题 The next code: $a["x"];//should trigger notice var_dump(error_get_last());//return the error array runs perfectly and returns an error array. but when I use set_error_handler it returns null function _do_nothing(){} set_error_handler('_do_nothing'); $a["x"];//should trigger notice var_dump(error_get_last());//return null This code works perfectly on PHP5.4 I had changed 3 month ago to PHP7 and since then I am getting nulls in error_get_last() I am using a shutdown function to check if an