On 18/02/02, "Alexander Feldman" <[EMAIL PROTECTED]> wrote:
> At 11:28 PM 2/17/2002 +0000, Wez Furlong wrote:
> >Can someone (Sascha?) refresh my memory about HAVE_FLUSHIO ?
> "Sasha" != "Sascha" ;-)

I was thinking of Sascha Schumann because I think I recall seeing
him commit on some of this stuff.

> If you use buffered I/O functions and open files in rw modes - yes (??? do 
> you need this for the streams implementation - should read the document 
> once more).

Yes, but just for the stdio streams.
So I will add a flag to the stdio stream data and fseek as needed.

> However I would strongly recommend the PHP I/O system to 
> organize file buffering internally (something the current implementation 
> does partially and in quite fancy way) and to use unbuffered system I/O.

Streams need to be able to wrap existing FILE*, and there was no need to
buffer those.  socket streams are buffered using the mechanisms in fsock.c.
I'm not sure about plain file-descriptors; the current technique is to
fdopen them and then use stdio streams.
 
> If I am not clear enough - drop me a note and I will try to dig out the C 
> and PHP examples that reproduced the problem...

Thanks - that's what I needed.

--Wez.


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to