Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 75006cf

Browse files
avoid false failure for long path (#18992)
1 parent 8bb6b81 commit 75006cf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎sapi/fpm/tests/socket-uds-too-long-filename-start.phpt‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ $tester->expectLogPattern(
4040

4141
$files = glob($socketFilePrefix . '*');
4242

43-
if ($files === []) {
44-
echo 'Socket files were not found.' . PHP_EOL;
45-
}
46-
47-
if ($socketFile === $files[0]) {
43+
if (isset($files[0]) && $socketFile === $files[0]) {
4844
// this means the socket file path length is not an issue (anymore). Might be not long enough
4945
echo 'Socket file is the same as configured.' . PHP_EOL;
5046
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /