Treat phpdbg as run from the command line when checking PHP_SAPI
[lhc/web/wiklou.git] / maintenance / mwdoc-filter.php
index feaad12..89fc44b 100644 (file)
@@ -39,7 +39,7 @@
  */
 
 // Warning: Converting this to a Maintenance script may reduce performance.
-if ( PHP_SAPI != 'cli' ) {
+if ( PHP_SAPI != 'cli' && PHP_SAPI != 'phpdbg' ) {
        die( "This filter can only be run from the command line.\n" );
 }