1
0
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:
Remi Collet
2025-07-04 08:33:07 +02:00
committed by GitHub
parent 8bb6b81c60
commit 75006cf21d

View File

@@ -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;
}