On 6/8/22 5:43 PM, Ivan Zhakov wrote:
> Yes, I see now. But it will be an incorrect value in case of a string
> larger than INT_MAX. Not a big issue, but IMHO strings larger than
> INT_MAX also are not big issue.
You are correct that the value will be incorrect in case of a string larger
than INT_MAX, but as ap_rputs can only return an int
and as we cannot change this without breaking the API/ABI it looked like the
best option to return just the value of the last call
to ap_rwrite.
One thing that comes to my mind now: As ap_rputs is static APR_INLINE in
include/http_protocol.h I guess that third party modules
that use it need to recompile to pick this up, correct?
Regards
RĂ¼diger