Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
paladox authored Nov 3, 2023
1 parent a81e60a commit 31f26bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
unset( $xhprofFlags );

$wgHTTPTimeout = 60;
} elseif ( PHP_SAPI === 'cli' ) {
} elseif ( PHP_SAPI === 'cli' && ( extension_loaded( 'tideways_xhprof' ) || extension_loaded( 'xhprof' ) ) ) {
if ( version_compare( PHP_VERSION, '8.2', '>=' ) ) {
$xhprofFlags = XHPROF_FLAGS_CPU | XHPROF_FLAGS_MEMORY | XHPROF_FLAGS_NO_BUILTINS;
} else {
Expand Down

0 comments on commit 31f26bf

Please sign in to comment.