Skip to content

Commit

Permalink
Revert "Use common scheme for unix domain socket filepath, i.e. repla…
Browse files Browse the repository at this point in the history
…ce `unix:` with `unix://`."

This reverts commit 4febe28.
  • Loading branch information
Andrey Zelenchuk committed Apr 12, 2016
1 parent eb13821 commit d734813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fcgiget.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
function print_usage_and_exit() {
echo "Usage: ".$_SERVER['argv'][0]." URI\n\n";
echo "Ex: ".$_SERVER['argv'][0]." localhost:9000/status\n";
echo "Ex: ".$_SERVER['argv'][0]." unix:///var/run/php-fpm/web.sock /status\n";
echo "Ex: ".$_SERVER['argv'][0]." unix:/var/run/php-fpm/web.sock /status\n";
exit(1);
}

if ($_SERVER['argc']<2) {
print_usage_and_exit();
}

if (preg_match('|^unix://(.*)$|', $_SERVER['argv'][1], $reg)) {
if (preg_match('|^unix:(.*)$|', $_SERVER['argv'][1], $reg)) {
if ($_SERVER['argc'] < 3) {
print_usage_and_exit();
}
Expand Down

0 comments on commit d734813

Please sign in to comment.