Hi, On Fri, Oct 31, 2025 at 11:58 PM Dennis Birkholz <[email protected]> wrote:
> 1. Why not use a "Pollable" interface that will be implemented by > Socket, CurlHandle, etc? That would allow to directly use the "resource > classes" without a step in between. > I actually planned to use interface initially but there are few issue with it. - as I mentioned above, not all handles will always allow using file descriptors (e.g. timer for kqueue) - abstract class allow internal api defintion and not calling the PHP functions internally (that's how the above can be handled as well) - it would require exposing the actual fd numbers for streams which after some thinking might not be best idea because it would make easier for people to have two streams for a single fd which might cause issues with filtering, buffering and so on. > 2. Is there a reason why mysqli (when using async queries) is missing > from the Future Scope list? Or did it just not come to mind? > I put there just those that I actually plan to implement and are relatively straight forward. For mysqli it might require some abstraction to get the mysqlnd stream so would need to check it out first. In other words I haven't fully investigated it yet. But it should be probably added too. Kind regards, Jakub
