Skip to content

Commit

Permalink
Just output a warning but don't prevent usage through non-cli SAPIs
Browse files Browse the repository at this point in the history
  • Loading branch information
jsor committed Apr 16, 2013
1 parent 2aaaa53 commit 24541e0
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 24541e0

Please sign in to comment.