diff --git a/typo3/sysext/core/Build/FunctionalTestsBootstrap.php b/typo3/sysext/core/Build/FunctionalTestsBootstrap.php index f7d578707e718aa343eeeb419f869cf31d50a3b7..ef93610407819824715d20449556f2468c6d5e4a 100644 --- a/typo3/sysext/core/Build/FunctionalTestsBootstrap.php +++ b/typo3/sysext/core/Build/FunctionalTestsBootstrap.php @@ -19,7 +19,7 @@ */ call_user_func(function () { // Ensure cli only as security measure - if (PHP_SAPI !== 'cli') { + if (PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg') { die('This script supports command line usage only. Please check your command.'); } diff --git a/typo3/sysext/core/Build/UnitTestsBootstrap.php b/typo3/sysext/core/Build/UnitTestsBootstrap.php index ed129a1c9d970362b938f5fb9f69cb8628c5ffb1..9f43e475900cfd49e18dfe9a2c74e9f436d287ed 100644 --- a/typo3/sysext/core/Build/UnitTestsBootstrap.php +++ b/typo3/sysext/core/Build/UnitTestsBootstrap.php @@ -28,7 +28,7 @@ */ call_user_func(function () { // Ensure cli only as security measure - if (PHP_SAPI !== 'cli') { + if (PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg') { die('This script supports command line usage only. Please check your command.'); }