BAC-1229 bitwise & error code and current value of error_reporting before reporting an error
Merge pull request #2594 from Wikia/BAC-1229

respect current value of error_reporting in set_error_handler callback