Fix GH-15701: fopencookie seek callback signature offset argument mis…#15702
Fix GH-15701: fopencookie seek callback signature offset argument mis…#15702devnexen wants to merge 1 commit intophp:PHP-8.3from
Conversation
|
ping :) |
cmb69
left a comment
There was a problem hiding this comment.
I'm not generally against this change, but I'm slightly concerned that we may cure the wrong symptoms here. That is all quite contrived. We use zend_off_t, PHP_FPOS_T, off64_t, and off_t pretty arbitrarily. I think it is more important to clean that up (maybe master only), than adding work-arounds for ancient OS versions.
|
But glibc defines (documented as So now you just use fpos_t to be equal to off64_t which it is but this makes it kind of messy. If there are difference I would prefere to create a special type for cookie_seek_function_t rather than reusing fpos_t. |
|
Shouldn't we just always use off64_t or some wrapper around it? Are there any platforms where directly using off64_t with IO cookies wouldn't work? |
|
We should at least unify |
…match.