Re: HAVE_FLUSHIO

From: Date: Mon, 18 Feb 2002 09:25:51 +0000
Subject: Re: HAVE_FLUSHIO
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-80135@lists.php.net to get a copy of this message
On 18/02/02, "Alexander Feldman" <alex@llama.gs> 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.

« previous php.dev (#80135) next »