diff --git a/tests/run-tests b/tests/run-tests index 8f710753b87..b66d8be20c2 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -922,7 +922,7 @@ More .INIs : " , (function_exists(\'php_ini_scanned_files\') ? str_replace("\n" 'session' => array('session.auto_start=0'), 'tidy' => array('tidy.clean_output=0'), 'zlib' => array('zlib.output_compression=Off'), - 'xdebug' => array('xdebug.default_enable=0'), + 'xdebug' => version_compare(phpversion('xdebug'), '3.0.0', '>=') ? array('xdebug.mode=off') : array('xdebug.default_enable=0'), 'mbstring' => array('mbstring.func_overload=0'), );