Lines Matching refs:stream

34 static ssize_t php_stream_output_write(php_stream *stream, const char *buf, size_t count) /* {{{ */  in php_stream_output_write()  argument
41 static ssize_t php_stream_output_read(php_stream *stream, char *buf, size_t count) /* {{{ */ 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) /* {{{ */ in php_stream_output_close() argument
72 static ssize_t php_stream_input_write(php_stream *stream, const char *buf, size_t count) /* {{{ */ in php_stream_input_write() argument
78 static ssize_t php_stream_input_read(php_stream *stream, char *buf, size_t count) /* {{{ */ in php_stream_input_read() argument
80 php_stream_input_t *input = stream->abstract; in php_stream_input_read()
101 stream->eof = 1; in php_stream_input_read()
110 static int php_stream_input_close(php_stream *stream, int close_handle) /* {{{ */ in php_stream_input_close() argument
112 efree(stream->abstract); in php_stream_input_close()
113 stream->abstract = NULL; in php_stream_input_close()
119 static int php_stream_input_flush(php_stream *stream) /* {{{ */ in php_stream_input_flush() argument
125 static int php_stream_input_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *new… in php_stream_input_seek() argument
127 php_stream_input_t *input = stream->abstract; in php_stream_input_seek()
151 static void php_stream_apply_filter_list(php_stream *stream, char *filterlist, int read_chain, int … in php_stream_apply_filter_list() argument
160 if ((temp_filter = php_stream_filter_create(p, NULL, php_stream_is_persistent(stream)))) { in php_stream_apply_filter_list()
161 php_stream_filter_append(&stream->readfilters, temp_filter); in php_stream_apply_filter_list()
167 if ((temp_filter = php_stream_filter_create(p, NULL, php_stream_is_persistent(stream)))) { in php_stream_apply_filter_list()
168 php_stream_filter_append(&stream->writefilters, temp_filter); in php_stream_apply_filter_list()
183 php_stream * stream = NULL; in php_stream_url_wrap_php() local
357 if (!(stream = php_stream_open_wrapper(p + 10, mode, options, opened_path))) { in php_stream_url_wrap_php()
367 php_stream_apply_filter_list(stream, p + 5, 1, 0); in php_stream_url_wrap_php()
369 php_stream_apply_filter_list(stream, p + 6, 0, 1); in php_stream_url_wrap_php()
371 …php_stream_apply_filter_list(stream, p, mode_rw & PHP_STREAM_FILTER_READ, mode_rw & PHP_STREAM_FIL… in php_stream_url_wrap_php()
378 php_stream_close(stream); in php_stream_url_wrap_php()
382 return stream; in php_stream_url_wrap_php()
400 stream = php_stream_sock_open_from_socket(fd, NULL); in php_stream_url_wrap_php()
401 if (stream) { in php_stream_url_wrap_php()
402 stream->ops = &php_stream_socket_ops; in php_stream_url_wrap_php()
403 return stream; in php_stream_url_wrap_php()
410 stream = php_stream_fopen_from_file(file, mode); in php_stream_url_wrap_php()
412 stream = php_stream_fopen_from_fd(fd, mode, NULL); in php_stream_url_wrap_php()
413 if (stream == NULL) { in php_stream_url_wrap_php()
419 if (pipe_requested && stream && context) { in php_stream_url_wrap_php()
422 …php_stream_set_option(stream, PHP_STREAM_OPTION_PIPE_BLOCKING, zval_get_long(blocking_pipes), NULL… in php_stream_url_wrap_php()
426 return stream; in php_stream_url_wrap_php()