You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Special string to flush buffers, nginx for example
38
38
$flushStr = '<!-- '.str_repeat("", 8192).' -->';
@@ -61,8 +61,7 @@ function print_pre($msg) {
61
61
// Check XDebug
62
62
$xdebug = (int)ini_get('xdebug.default_enable');
63
63
if ($xdebug) {
64
-
print_pre('<<< ERROR >>> You need to disable Xdebug extension! It greatly slow things down!'.PHP_EOL);
65
-
exit(1);
64
+
print_pre('<<< WARNING >>> You need to disable Xdebug extension! It greatly slow things down! And mess with PHP internals.'.PHP_EOL);
66
65
}
67
66
68
67
// Check OpCache
@@ -367,7 +366,7 @@ function print_pre($msg) {
367
366
368
367
$set = set_time_limit($defaultTimeLimit);
369
368
if ($set === false) {
370
-
print_pre("<<< WARNING >>> Execution time limit not droppped to '{$defaultTimeLimit}' seconds!\nScript will have only '{$originTimeLimit}' seconds to" . PHP_EOL);
369
+
print_pre("<<< WARNING >>> Execution time limit not droppped to '{$defaultTimeLimit}' seconds!\nScript will have only '{$originTimeLimit}' seconds to run." . PHP_EOL);
@@ -1218,9 +1217,17 @@ function format_result_test($diffSeconds, $opCount, $memory = 0)
1218
1217
}
1219
1218
$has_xdebug = "no";
1220
1219
if (extension_loaded('xdebug')) {
1221
-
print_pre("<<< WARNING >>> Extension 'xdebug' loaded! It will affect results and slow things greatly! Even if not enabled!");
1220
+
print_pre("<<< WARNING >>> Extension 'xdebug' loaded! It will affect results and slow things greatly! Even if not enabled!\n");
1221
+
print_pre("<<< WARNING >>> Set xdebug.mode in php.ini / VHost or FPM config / php_admin_value or via cmd '-dxdebug.mode=off' option of PHP executable.\n");
1222
1222
$has_xdebug = "yes";
1223
+
ini_set("xdebug.mode", "off");
1224
+
ini_set("xdebug.default_enable", 0);
1225
+
ini_set("xdebug.remote_autostart", 0);
1226
+
ini_set("xdebug.remote_enable", 0);
1227
+
ini_set("xdebug.profiler_enable", 0);
1223
1228
}
1229
+
$xdbg_mode = ini_get("xdebug.mode");
1230
+
1224
1231
$has_dom = "no";
1225
1232
if (extension_loaded('dom')) {
1226
1233
$has_dom = "yes";
@@ -1273,7 +1280,7 @@ function format_result_test($diffSeconds, $opCount, $memory = 0)
0 commit comments