Skip to content

Commit e4f737b

Browse files
committed
fix a security bugs in command line entrypoint
1 parent 03e1f99 commit e4f737b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

bin/chip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<?php
33
if (PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg') {
44
echo 'Warning: Chip should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;
5+
exit;
56
}
67

78
require __DIR__ . '/../vendor/autoload.php';

0 commit comments

Comments
 (0)