Closed
Description
Preconditions
- Have XDebug Version 3.0.1 or higher installed
- Have XDebug extension enabled in php.ini
Steps to reproduce
- Disable Magento debug mode
- Run any
bin/magento
command with magento2-functional-testing-framework enabled
Expected result
Command is executed
Actual result
PHP Fatal error: Uncaught Error: Call to undefined function xdebug_disable() in ROOT/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/_bootstrap.php
Possible solution (only to prevent error)
Change ROOT/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/_bootstrap.php lines 71-74 to:
$debugMode = $_ENV['MFTF_DEBUG'] ?? false;
if (!(bool)$debugMode && extension_loaded('xdebug')) {
if (version_compare(phpversion('xdebug'), '3.0.1', '<')) {
xdebug_disable();
} else {
// I don't know the method for version >= 3.0.1
}
}