--TEST-- FPM: UNIX socket filename is too for start --SKIPIF-- --FILE-- start(); $tester->expectLogStartNotices(); $tester->expectLogPattern( sprintf( '/\[pool fpm_pool\] cannot bind to UNIX socket \'%s\' as path is too long ' . '\(found length: %d, maximal length: \d+\), trying cut socket path instead \'.+\'/', preg_quote($socketFile, '/'), strlen($socketFile) ), true ); $files = glob($socketFilePrefix . '*'); 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; } $tester->terminate(); $tester->expectLogTerminatingNotices(); $tester->close(); ?> Done --EXPECT-- Done --CLEAN--