Re: [PHP] Re: STDIN Stream Query

2007-08-17 Thread Per Jessen
Jason Freeman wrote: > Per Jessen wrote: >> >> When a file descriptor (stdin) is non-blocking, any read() will not >> block and wait for data to become available, but will return right >> away with or without data. Set the fd to blocking to wait for data. >> > > This is true which is why I put f

Re: [PHP] Re: STDIN Stream Query

2007-08-17 Thread Jason Freeman
Per Jessen wrote: Jason Freeman wrote: Hi All I am having a problem getting stream_set_blocking to work the way I expect on STDIN. Please could someone tell me why while blocking is set to false fread does not get anything. When a file descriptor (stdin) is non-blocking, any read(

[PHP] Re: STDIN Stream Query

2007-08-16 Thread Per Jessen
Jason Freeman wrote: > Hi All > > I am having a problem getting stream_set_blocking to work the way I > expect on STDIN. Please could someone tell me why while blocking is > set to false fread does not get anything. When a file descriptor (stdin) is non-blocking, any read() will not block and w