Re: Streams: Further considerations

From: Date: Fri, 04 Oct 2002 22:26:25 +0000
Subject: Re: Streams: Further considerations
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-89034@lists.php.net to get a copy of this message
> - Disable buffering for stdio streams (setvbuf(3) or similar). > - read(2) using the fd obtained from fileno(3) (where valid). Ok, here is a plan: 1. Use fgetc in stream_gets for stdio stream ops 2. Add file descriptor-based stream ops 3. Redirect _php_stream_fopen_from_file/pipe to new stream ops, if possible The first point is trivial to implement. The rest ensures that no fread/read calls are mixed which could lead to some pretty obscure bugs. > The stdio buffering could be restored when the stream is cast > for use by third-party libraries. I'm not sure what you are referring to -- do these libraries make use of "FILE *" directly? - Sascha

« previous php.dev (#89034) next »