Skip to content

Commit

Permalink
merged branch jsor/php-sapi-warning (PR sensiolabs#80)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

Just output a warning but don't prevent usage through non-cli SAPIs

Composer has also turned this into a warning in composer/composer@c1ff6ea

Commits
-------

24541e0 Just output a warning but don't prevent usage through non-cli SAPIs
  • Loading branch information
fabpot committed Apr 16, 2013
2 parents 2aaaa53 + 24541e0 commit 4a2c803
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Resources/bin/build_bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
*/

if (PHP_SAPI !== 'cli') {
echo __FILE__.' should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;
exit(1);
echo 'Warning: '.__FILE__.' should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;
}

$argv = $_SERVER['argv'];
Expand Down

0 comments on commit 4a2c803

Please sign in to comment.