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 3c183a8 commit 0cb3074Copy full SHA for 0cb3074
sapi/fpm/tests/tester.inc
@@ -1155,9 +1155,19 @@ class Tester
1155
return $address;
1156
}
1157
1158
- return sys_get_temp_dir() . '/' .
1159
- hash('crc32', dirname($address)) . '-' .
1160
- basename($address);
+ $addressPart = hash('crc32', dirname($address)) . '-' . basename($address);
+
+ // is longer on Mac, than on Linux
1161
+ $tmpDirAddress = sys_get_temp_dir() . '/' . $addressPart;
1162
+ ;
1163
1164
+ if (strlen($tmpDirAddress) <= 104) {
1165
+ return $tmpDirAddress;
1166
+ }
1167
1168
+ $srcRootAddress = dirname(__DIR__, 3) . '/' . $addressPart;
1169
1170
+ return $srcRootAddress;
1171
1172
1173
return $this->getHost($type) . ':' . $port;
0 commit comments