[PHP-DEV] Re: Streams: Further considerations

2002-10-04 Thread Wez Furlong
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

[PHP-DEV] Re: Streams: Further considerations

2002-10-04 Thread Sascha Schumann
> - 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

[PHP-DEV] Re: Streams: Further considerations

2002-10-04 Thread Wez Furlong
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