dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Treat phpdbg as run from the command line when checking PHP_SAPI
[lhc/web/wiklou.git]
/
includes
/
exception
/
MWExceptionHandler.php
diff --git
a/includes/exception/MWExceptionHandler.php
b/includes/exception/MWExceptionHandler.php
index
f3d61f0
..
d863a2b
100644
(file)
--- a/
includes/exception/MWExceptionHandler.php
+++ b/
includes/exception/MWExceptionHandler.php
@@
-121,7
+121,7
@@
class MWExceptionHandler {
self::handleException( $e );
// Make sure we don't claim success on exit for CLI scripts (T177414)
- if (
PHP_SAPI === 'cli'
) {
+ if (
wfIsCLI()
) {
register_shutdown_function(
function () {
exit( 255 );