swoole/swoole-src ? reverse-engineered prompt
Reverse engineered prompt
Build me a fast PHP extension for running servers and background work without blocking, so a PHP app can handle lots of requests at the same time.
I want it to let me start HTTP, WebSocket, TCP, and HTTP2 style services, and also run coroutine based tasks so things like database calls, Redis, curl requests, file reads, and sleep calls can happen together instead of one at a time. It should feel natural to use from PHP, with simple server callbacks, easy connection handling, and good support for running many concurrent jobs in one process.
Please make the project compile cleanly, include the core source, headers, examples, and tests, and make sure the basic docs and sample code match what actually works. If anything is unclear, look up the current docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit