We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b608b8e commit 955a48eCopy full SHA for 955a48e
bin/composer
@@ -2,6 +2,11 @@
2
<?php
3
4
if (PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg') {
5
+ if (0 === strpos(__FILE__, 'phar:') && ini_get('register_argc_argv')) {
6
+ echo 'Composer cannot be run safely on non-CLI SAPIs with register_argc_argv=On. Aborting.'.PHP_EOL;
7
+ exit(1);
8
+ }
9
+
10
echo 'Warning: Composer should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;
11
}
12
0 commit comments