I am trying to troubleshoot a problem I am having with error reporting.

When I try to access an object as an array the following error message should be displayed by PHP
PHP Code:
Fatal errorCannot use object of type [object name] as array 
When setting the error_reporting to E_ALL, then the message appears fine and execution is halted.
Now this displayes a bunch of notices as well that I want to remove so I set the error reporting to E_ALL ^ E_NOTICE, but then the message is not shown at all.

The weird thing is that other parce errors are being shown ok.

Any ideas how to fix this?