I have written a stream wrapper and when I call include foo://bar
my stream_flush
implementation gets called. stream_open
gets called with rb
. So... why is flush called? Since the file is opened read only I do not really have anything to do there if my understanding of stream_flush
is correct but then again if my understanding would be correct it wouldn't be called in the first place.
Edit: since this got an "unclear what you are asking" close vote: the question really is, what should I do in my stream_flush implementation when it is called on a read only fie?