From: Reedy Date: Fri, 25 Oct 2013 12:57:26 +0000 (+0100) Subject: Replace php_sapi_name() with PHP_SAPI X-Git-Tag: 1.31.0-rc.0~18389 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=08e84030d3829c1bf757aef8d7e83de02659e5af;p=lhc%2Fweb%2Fwiklou.git Replace php_sapi_name() with PHP_SAPI Change-Id: I222789cacaa2653c4dac62708ce228674c90af4c --- 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 );