On 04/10/02, "Sascha Schumann" <[EMAIL PROTECTED]> wrote:
> 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
So, if fileno() returns a valid fd, we will use o
> - 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/pi
That's pretty much what streams was doing a couple of weeks ago.
The reason it was changed was because the stdio fgets doesn't handle
non-native EOL conventions :-/.
What are your thoughts on the following:
- Disable buffering for stdio streams (setvbuf(3) or similar).
- read(2) using the fd obt