Reedy has uploaded a new change for review.
https://gerrit.wikimedia.org/r/91854
Change subject: Replace php_sapi_name() with PHP_SAPI
......................................................................
Replace php_sapi_name() with PHP_SAPI
Change-Id: I222789cacaa2653c4dac62708ce228674c90af4c
---
M includes/filebackend/FileBackend.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/54/91854/1
diff --git a/includes/filebackend/FileBackend.php
b/includes/filebackend/FileBackend.php
index f586578..4bcaa7f 100644
--- a/includes/filebackend/FileBackend.php
+++ b/includes/filebackend/FileBackend.php
@@ -807,7 +807,7 @@
* @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 );
--
To view, visit https://gerrit.wikimedia.org/r/91854
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I222789cacaa2653c4dac62708ce228674c90af4c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits