Skip to content

Commit d734813

Browse files
author
Andrey Zelenchuk
committed
Revert "Use common scheme for unix domain socket filepath, i.e. replace unix: with unix://."
This reverts commit 4febe28.
1 parent eb13821 commit d734813

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fcgiget.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
function print_usage_and_exit() {
2828
echo "Usage: ".$_SERVER['argv'][0]." URI\n\n";
2929
echo "Ex: ".$_SERVER['argv'][0]." localhost:9000/status\n";
30-
echo "Ex: ".$_SERVER['argv'][0]." unix:///var/run/php-fpm/web.sock /status\n";
30+
echo "Ex: ".$_SERVER['argv'][0]." unix:/var/run/php-fpm/web.sock /status\n";
3131
exit(1);
3232
}
3333

3434
if ($_SERVER['argc']<2) {
3535
print_usage_and_exit();
3636
}
3737

38-
if (preg_match('|^unix://(.*)$|', $_SERVER['argv'][1], $reg)) {
38+
if (preg_match('|^unix:(.*)$|', $_SERVER['argv'][1], $reg)) {
3939
if ($_SERVER['argc'] < 3) {
4040
print_usage_and_exit();
4141
}

0 commit comments

Comments
 (0)