@@ -79,13 +79,11 @@ static size_t php_stream_input_read(php_stream *stream, char *buf, size_t count
79
79
{
80
80
php_stream_input_t * input = stream -> abstract ;
81
81
size_t read ;
82
- //fprintf(stderr, "Attempt to read %lu bytes (%lu)\n", count, SG(read_post_bytes));
83
82
84
83
if (!SG (post_read ) && SG (read_post_bytes ) < input -> position + count ) {
85
84
/* read requested data from SAPI */
86
85
int read_bytes = sapi_read_post_block (buf , count TSRMLS_CC );
87
86
88
- //fprintf(stderr, "Did read %d bytes\n", read_bytes);
89
87
if (read_bytes > 0 ) {
90
88
php_stream_seek (* input -> body_ptr , 0 , SEEK_END );
91
89
php_stream_write (* input -> body_ptr , buf , read_bytes );
@@ -105,20 +103,6 @@ static size_t php_stream_input_read(php_stream *stream, char *buf, size_t count
105
103
}
106
104
/* }}} */
107
105
108
- static size_t php_stream_input_read_x (php_stream * stream , char * buf , size_t count TSRMLS_DC ) /* {{{ */
109
- {
110
- php_stream_input_t * input = stream -> abstract ;
111
- php_stream * inner = * input -> body_ptr ;
112
-
113
- if (inner && inner -> ops -> read ) {
114
- size_t read = inner -> ops -> read (inner , buf , count TSRMLS_CC );
115
- stream -> eof = inner -> eof ;
116
- return read ;
117
- }
118
- return -1 ;
119
- }
120
- /* }}} */
121
-
122
106
static int php_stream_input_close (php_stream * stream , int close_handle TSRMLS_DC ) /* {{{ */
123
107
{
124
108
efree (stream -> abstract );
0 commit comments