From 08e84030d3829c1bf757aef8d7e83de02659e5af Mon Sep 17 00:00:00 2001 From: Reedy Date: Fri, 25 Oct 2013 13:57:26 +0100 Subject: [PATCH] Replace php_sapi_name() with PHP_SAPI Change-Id: I222789cacaa2653c4dac62708ce228674c90af4c --- includes/filebackend/FileBackend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filebackend/FileBackend.php b/includes/filebackend/FileBackend.php index f586578b2a..4bcaa7f840 100644 --- a/includes/filebackend/FileBackend.php +++ b/includes/filebackend/FileBackend.php @@ -807,7 +807,7 @@ abstract class FileBackend { * @return ScopedCallback|null */ final protected function getScopedPHPBehaviorForOps() { - if ( php_sapi_name() != 'cli' ) { // http://bugs.php.net/bug.php?id=47540 + if ( PHP_SAPI != 'cli' ) { // http://bugs.php.net/bug.php?id=47540 $old = ignore_user_abort( true ); // avoid half-finished operations return new ScopedCallback( function() use ( $old ) { ignore_user_abort( $old ); -- 2.20.1