Infection: Build failures on Travis/phpdbg: FD_SETSIZE limitations

Created on 18 Jul 2018  路  3Comments  路  Source: infection/infection

We started getting interesting failures with phpdbg:

Infection\Tests\StreamWrapper\IncludeInterceptorTest::test_passthrough_file_methods_pass
stream_select(): You MUST recompile PHP with a larger value of FD_SETSIZE.                                               
It is set to 1024, but you have descriptors numbered at least as high as 1027.
--enable-fd-setsize=2048 is recommended, but you may want to set it 
to equal the maximum number of open files supported by your system,
in order to avoid seeing this error again at a later date.
Help Wanted

All 3 comments

Can confirm this also happens when running make test-infection-phpdbg-72, so its not a travis issue.

I'm not sure if this is an issue in:

  • Infection
  • The test suite
  • phpdbg itself

That's great! Were you able to bisect it?

PHP cs fixer seems to have a similar issue, linking here for future reference
https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/3929

Was this page helpful?
0 / 5 - 0 ratings