Make hookErrorHandler() only care about serious signature errors
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 22 Oct 2015 00:31:18 +0000 (17:31 -0700)
committerOri Livneh <ori@wikimedia.org>
Thu, 22 Oct 2015 00:49:31 +0000 (17:49 -0700)
commitca2840b5a573fb948f6638f733e9cbfc068d9be9
treead788d57e7c8c24b7f3ce663e508ed92b17ef384
parent9140248018538a05560edf6ee32fcc4268d9d597
Make hookErrorHandler() only care about serious signature errors

Previously, it would send all manor of warnings to the error
and error-json channels. This adds a lot of overhead due to
AbuseFilter parse/eval errors. By passing immediately instead
of after calling handleError(), that overhead is avoided. Since
it still passes (e.g. returns false), any default PHP warning
logging still applies.

Change-Id: I18e60c09c2a48f2e26abab5d451bb52ea4ba7961
includes/Hooks.php