Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Commit

Permalink
Add check for PHP_SAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Apr 9, 2013
1 parent 232071c commit e144e85
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Resources/bin/build_bootstrap.php
Expand Up @@ -10,6 +10,11 @@
* file that was distributed with this source code.
*/

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

$argv = $_SERVER['argv'];

// allow the base path to be passed as the first argument, or default
Expand Down

0 comments on commit e144e85

Please sign in to comment.