If the track_errors feature is enabled, any error message generated by the expression will be saved in the variable $php_errormsg. Operator precedence is working against you in this instance. The operation involving offset operation is before before the error blocking operator is considered. This variable will be overwritten on each error, so check early if you want to use it.
PHP Code:
<?php
function ErrorHandler() {
var_dump(error_reporting()); // 0
}
set_error_handler('ErrorHandler');
echo @$a[1];
?>
Bookmarks