diff --git a/symfony/console/3.3/bin/console b/symfony/console/3.3/bin/console index 52fd3989..19c2f6c3 100755 --- a/symfony/console/3.3/bin/console +++ b/symfony/console/3.3/bin/console @@ -6,6 +6,10 @@ use Symfony\Bundle\FrameworkBundle\Console\Application; use Symfony\Component\Console\Input\ArgvInput; use Symfony\Component\Debug\Debug; +if (false === in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) { + echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.\PHP_SAPI.' SAPI'.\PHP_EOL; +} + set_time_limit(0); require dirname(__DIR__).'/vendor/autoload.php';