mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
avoid false failure for long path (#18992)
This commit is contained in:
@@ -40,11 +40,7 @@ $tester->expectLogPattern(
|
||||
|
||||
$files = glob($socketFilePrefix . '*');
|
||||
|
||||
if ($files === []) {
|
||||
echo 'Socket files were not found.' . PHP_EOL;
|
||||
}
|
||||
|
||||
if ($socketFile === $files[0]) {
|
||||
if (isset($files[0]) && $socketFile === $files[0]) {
|
||||
// this means the socket file path length is not an issue (anymore). Might be not long enough
|
||||
echo 'Socket file is the same as configured.' . PHP_EOL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user