Page MenuHomePhabricator

ApiMain exception catching should also handle PHP7 Errors
Closed, ResolvedPublic


ApiMain (and also api.php) tries to catch any Exception so as to provide a properly-formatted error message to the client instead of an HTML error page.

With PHP 7.0, some cases that produce an Exception in HHVM instead produce an Error. The API code should catch these too.

Event Timeline

Anomie created this task.Aug 21 2018, 3:18 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 21 2018, 3:18 PM
Anomie moved this task from Unsorted to Needs Review on the MediaWiki-API board.Aug 21 2018, 3:21 PM

Change 454302 had a related patch set uploaded (by Anomie; owner: Anomie):
[mediawiki/core@master] API: Catch Errors as well as Exceptions

Change 454302 merged by jenkins-bot:
[mediawiki/core@master] API: Catch Errors as well as Exceptions

Anomie closed this task as Resolved.Aug 23 2018, 7:17 PM