wiki.techinc.nl/includes/exception
Kunal Mehta 251a0b97e5 Treat phpdbg as run from the command line when checking PHP_SAPI
phpdbg is a gdb-style debugger for PHP that is run from the command
line. However, it has a different PHP_SAPI value, so it was impossible
to run maintenance scripts with it (until now).

To avoid having to check both PHP_SAPI values in a bunch of places,
introduce wfIsCLI() to easily check whether running from the
command-line or not.

We're (CI team) interested in generating code coverage with phpdbg
instead of xdebug, hence this patch.

Bug: T184043
Change-Id: Id1f994ca146d7858cd8bb6ab6cdbb7718ff524fb
2018-01-03 23:00:37 -08:00
..
BadRequestError.php exception: Create generic BadRequestError based on ErrorPageError 2016-05-19 18:59:15 +00:00
BadTitleError.php exception: Create generic BadRequestError based on ErrorPageError 2016-05-19 18:59:15 +00:00
ErrorPageError.php Fix/hack ErrorPageError to work from non-UI contexts 2017-07-06 20:04:31 +00:00
FatalError.php
HttpError.php Remove auto-generated "Constructor" documentation on constructors 2017-07-21 12:19:30 +02:00
LocalizedException.php Use Sanitizer::stripAllTags( $x ) instead of html_entity_decode( strip_tags( $x ) ) 2017-07-07 16:53:53 -07:00
MWContentSerializationException.php Remove trailing empty lines in PHP 2017-01-16 22:06:43 +01:00
MWException.php SECURITY: Escape internal error message 2017-11-15 00:58:44 +00:00
MWExceptionHandler.php Treat phpdbg as run from the command line when checking PHP_SAPI 2018-01-03 23:00:37 -08:00
MWExceptionRenderer.php Merge "MWExceptionRenderer: Wrap error message in a paragraph" 2017-11-15 10:38:43 +00:00
MWUnknownContentModelException.php Remove trailing empty lines in PHP 2017-01-16 22:06:43 +01:00
PermissionsError.php User group memberships that expire 2017-01-27 09:24:20 +00:00
ProcOpenError.php Replace wfShellExec() with a class 2017-09-08 21:49:49 -07:00
ReadOnlyError.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ShellDisabledError.php Replace wfShellExec() with a class 2017-09-08 21:49:49 -07:00
ThrottledError.php
UserBlockedError.php
UserNotLoggedIn.php Merge "Miscellaneous indentation tweaks" 2017-02-28 18:38:36 +00:00