Skip to content

Commit 782f6ff

Browse files
author
symfony-flex-server[bot]
authored
Merge pull request #569
2 parents bddda97 + 0e96733 commit 782f6ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

symfony/console/3.3/bin/console

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ use Symfony\Bundle\FrameworkBundle\Console\Application;
66
use Symfony\Component\Console\Input\ArgvInput;
77
use Symfony\Component\Debug\Debug;
88

9+
if (false === in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
10+
echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.\PHP_SAPI.' SAPI'.\PHP_EOL;
11+
}
12+
913
set_time_limit(0);
1014

1115
require dirname(__DIR__).'/vendor/autoload.php';

0 commit comments

Comments
 (0)