We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71e1d37 commit af337aeCopy full SHA for af337ae
sapi/fpm/tests/tester.inc
@@ -856,7 +856,17 @@ class Tester
856
{
857
$port = $this->getPort($type, $pool, true);
858
if ($type === 'uds') {
859
- return $this->getFile($port . '.sock');
+ $address = $this->getFile($port . '.sock');
860
+
861
+ // Socket max path length is 108 on Linux and 104 on BSD,
862
+ // so we use the latter
863
+ if (strlen($address) <= 104) {
864
+ return $address;
865
+ }
866
867
+ return sys_get_temp_dir().'/'.
868
+ hash('crc32', dirname($address)).'-'.
869
+ basename($address);
870
}
871
872
return $this->getHost($type) . ':' . $port;
0 commit comments