[GIT-PULLS] [php-src] PR #22733: Size is always one in curl functions

[email protected] (Sjord)
Newsgroups php.git-pulls
Message-ID <epKCnGPbhgHZHo3QY9Kho7sy2Ho1JY2GA8fzolj0Nco@main.internal.php.net>
Pull Request: https://github.com/php/php-src/pull/22733
Author: Sjord

Assert and take advantage of that size is always 1. This is also documented in [the curl docs](https://curl.se/libcurl/c/CURLOPT_READFUNCTION.html). So there is no need to multiply with size, so this can be removed.

I started this to see whether size * nmemb can overflow. This makes it clear that it cannot.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.