Re: [PHP] socket_get_status()

2001-10-01 Thread Mukul Sabharwal
Hi, Well I'm not totally sure, why socket_get_status would not give you the correct value, other than a bug, as the manual does indicate the socket functions are experimental. There are altenative ways to get the number of bytes in the buffer, like using ioctl with FIONREAD, ofcourse that is a C

[PHP] socket_get_status()

2001-10-01 Thread Richard Heyes
Hi, Exactly what does the unread_bytes parameter of the return of socket_get_status() mean? I thought it would be the amount of data waiting to be gotten via fgets() or fread(), but not according to my lil' test (interactive mode): bool(false) ["blocked"]=> bool(true) ["eof"]=> bool(f

Re: [PHP] socket_get_status()

2001-10-01 Thread Mukul Sabharwal
Hi, Well I'm not totally sure, why socket_get_status would not give you the correct value, other than a bug, as the manual does indicate the socket functions are experimental. There are altenative ways to get the number of bytes in the buffer, like using ioctl with FIONREAD, ofcourse that is a C

[PHP] socket_get_status()

2001-09-30 Thread Richard Heyes
Hi, Exactly what does the unread_bytes parameter of the return of socket_get_status() mean? I thought it would be the amount of data waiting to be gotten via fgets() or fread(), but not according to my lil' test (interactive mode): bool(false) ["blocked"]=> bool(true) ["eof"]=> bool(f