Lines Matching refs:stream

34 static size_t php_stream_output_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) …  in php_stream_output_write()  argument
41 static size_t php_stream_output_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) /* {{{ … in php_stream_output_read() argument
43 stream->eof = 1; in php_stream_output_read()
48 static int php_stream_output_close(php_stream *stream, int close_handle TSRMLS_DC) /* {{{ */ in php_stream_output_close() argument
66 static size_t php_stream_input_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) /… in php_stream_input_write() argument
72 static size_t php_stream_input_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) /* {{{ */ in php_stream_input_read() argument
74 off_t *position = (off_t*)stream->abstract; in php_stream_input_read()
77 if (!stream->eof) { in php_stream_input_read()
81 stream->eof = 1; in php_stream_input_read()
91 stream->eof = 1; in php_stream_input_read()
97 stream->eof = 1; in php_stream_input_read()
107 static int php_stream_input_close(php_stream *stream, int close_handle TSRMLS_DC) /* {{{ */ in php_stream_input_close() argument
109 efree(stream->abstract); in php_stream_input_close()
115 static int php_stream_input_flush(php_stream *stream TSRMLS_DC) /* {{{ */ in php_stream_input_flush()
133 static void php_stream_apply_filter_list(php_stream *stream, char *filterlist, int read_chain, int … in php_stream_apply_filter_list() argument
142 …if ((temp_filter = php_stream_filter_create(p, NULL, php_stream_is_persistent(stream) TSRMLS_CC)))… in php_stream_apply_filter_list()
143 php_stream_filter_append(&stream->readfilters, temp_filter); in php_stream_apply_filter_list()
149 …if ((temp_filter = php_stream_filter_create(p, NULL, php_stream_is_persistent(stream) TSRMLS_CC)))… in php_stream_apply_filter_list()
150 php_stream_filter_append(&stream->writefilters, temp_filter); in php_stream_apply_filter_list()
164 php_stream * stream = NULL; in php_stream_url_wrap_php() local
322 if (!(stream = php_stream_open_wrapper(p + 10, mode, options, opened_path))) { in php_stream_url_wrap_php()
332 php_stream_apply_filter_list(stream, p + 5, 1, 0 TSRMLS_CC); in php_stream_url_wrap_php()
334 php_stream_apply_filter_list(stream, p + 6, 0, 1 TSRMLS_CC); in php_stream_url_wrap_php()
336 …php_stream_apply_filter_list(stream, p, mode_rw & PHP_STREAM_FILTER_READ, mode_rw & PHP_STREAM_FIL… in php_stream_url_wrap_php()
342 return stream; in php_stream_url_wrap_php()
360 stream = php_stream_sock_open_from_socket(fd, NULL); in php_stream_url_wrap_php()
361 if (stream) { in php_stream_url_wrap_php()
362 stream->ops = &php_stream_socket_ops; in php_stream_url_wrap_php()
363 return stream; in php_stream_url_wrap_php()
370 stream = php_stream_fopen_from_file(file, mode); in php_stream_url_wrap_php()
372 stream = php_stream_fopen_from_fd(fd, mode, NULL); in php_stream_url_wrap_php()
373 if (stream == NULL) { in php_stream_url_wrap_php()
378 return stream; in php_stream_url_wrap_php()