From 4d8a07d52908505e1516e6cef455debb07f1c2e2 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 23 Sep 2002 01:47:04 +0000 Subject: Implement read buffering in streams. Eliminate similar code from network.c. Implement fgets equivalent at the streams level, which can detect the mac, dos and unix line endings and handle them appropriately. The default behaviour is unix (and dos) line endings. An ini option to control this behaviour will follow. # Don't forget to make clean! # I've done some testing but would appreciate feedback from # people with scripts/extensions that seek around a lot. --- main/php_network.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'main/php_network.h') diff --git a/main/php_network.h b/main/php_network.h index 5279377986..ffb23cc3fa 100644 --- a/main/php_network.h +++ b/main/php_network.h @@ -103,13 +103,8 @@ int php_sockaddr_size(php_sockaddr_storage *addr); struct _php_netstream_data_t { int socket; - unsigned char *readbuf; - size_t readbuflen; - size_t readpos; - size_t writepos; char eof; char is_blocked; - size_t chunk_size; struct timeval timeout; char timeout_event; #if HAVE_OPENSSL_EXT -- cgit v1.2.1