From d73481308aa4705a577d2de3c391566be7961835 Mon Sep 17 00:00:00 2001 From: Andrey Zelenchuk Date: Tue, 12 Apr 2016 21:03:32 +0600 Subject: [PATCH] Revert "Use common scheme for unix domain socket filepath, i.e. replace `unix:` with `unix://`." This reverts commit 4febe288e0c219adf22af07b35e45a85595b6631. --- fcgiget.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fcgiget.php b/fcgiget.php index e4c1ce4..051ea0a 100755 --- a/fcgiget.php +++ b/fcgiget.php @@ -27,7 +27,7 @@ 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); } @@ -35,7 +35,7 @@ function print_usage_and_exit() { 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(); }