You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Require poll() for UNIX based OSs and improve emulation for Windows #15532
Makes sense to do this, but unless we are absolutely sure that all non Windows we are supporting support poll(), maybe it's better to postpone that to PHP next (8.5 or 9.0).
Activity
cmb69 commentedon Aug 22, 2024
Makes sense to do this, but unless we are absolutely sure that all non Windows we are supporting support
poll(), maybe it's better to postpone that to PHP next (8.5 or 9.0).Girgias commentedon Aug 22, 2024
This is definitely not urgent, the point of the issue is to have a reminder somewhere of this!
I also think it is better to wait for the next release as we're already in beta, and I am a bit vary to change such an aspect.
Girgias commentedon Mar 26, 2026
Just rediscovered this, maybe @petk has any knowledge about the availability of
pollon other platforms?petk commentedon Mar 26, 2026
It's widely available. In practice it won't be possible to find a POSIX system without it.
It was once part of the XSI (so some systems lacked it - some very old Solaris versions probably, IRIX, some very old BSD-based systems and similar) but now it is moved to base POSIX:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/poll.html
I'm also collecting all such similar POSIX functionality here: https://github.com/petk/php-build-system/blob/8af7cf3d50b738764d5cd2aa22f3775174796f13/cmake/cmake/platforms/Unix.cmake
for which it can be assumed that they are available on all POSIX systems. If I find some system that where it would be still relevant to check all of these, I'll notice it sooner or later.
bukka commentedon Nov 1, 2026
It's also now required since PHP Poll API - meaning PHP won't build on non Windows platform if poll is not available. So this can be closed...
bukka commentedon Nov 1, 2026
Well I will leave it open as there is that note about improving emulation and maybe some clean up could be done too...