/* TODO: look at error returns? */
- while (--maxlen > 0 && php_stream_read(stream, buf, 1 TSRMLS_CC) == 1 && *buf++ != '\n')
+ while (--maxlen > 0 && php_stream_read(stream, buf, 1) == 1 && *buf++ != '\n')
;
*buf = '\0';
php_stdio_stream_data *data = (php_stdio_stream_data*) stream->abstract;
size_t size;
int fd;
+#ifdef O_NONBLOCK
+ /* FIXME: make this work for win32 */
int flags;
int oldval;
+#endif
switch(option) {
case PHP_STREAM_OPTION_BLOCKING: