* DEALINGS IN THE SOFTWARE.
*/
-if ( PHP_SAPI != 'cli' ) {
+// Warning: Converting this to a Maintenance script may reduce performance.
+if ( PHP_SAPI != 'cli' && PHP_SAPI != 'phpdbg' ) {
die( "This filter can only be run from the command line.\n" );
}