[php-src] PR #19656: [WIP] cURL Socket Functions

From: Date: Mon, 01 Sep 2025 04:07:09 +0000
Subject: [php-src] PR #19656: [WIP] cURL Socket Functions
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-33021@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/19656 Author: krakjoe A request was made to expose cURL sockets to userland so they may be used in external event loops. The original request suggested we use curls export of fdsets, this looked pretty restricted though when I came to implement it, and exporting the set for every select also didn't look very performant. cURL has provided these API's for a long time, a very long time, and we have never implemented them, I'm not certain of the reasons for that. This has reintroduced resources in cURL, but there's no other reasonable way to do this ... To opt-in to socket management you must set a timer and socket function. I'm not certain about this at all, looking for feedback on this approach. I'm not certain of the consequences of manipulating these streams outside of select(), what happens if you read or write them is unclear.

« previous php.git-pulls (#33021) next »