jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
Parent5446: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I222789cacaa2653c4dac62708ce228674c90af4c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
Gerrit-Reviewer: Parent5446 <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits