Lines Matching refs:stream

32 static ssize_t php_stream_output_write(php_stream *stream, const char *buf, size_t count) /* {{{ */  in php_stream_output_write()  argument
39 static ssize_t php_stream_output_read(php_stream *stream, char *buf, size_t count) /* {{{ */ in php_stream_output_read() argument
41 stream->eof = 1; in php_stream_output_read()
46 static int php_stream_output_close(php_stream *stream, int close_handle) /* {{{ */ in php_stream_output_close() argument
70 static ssize_t php_stream_input_write(php_stream *stream, const char *buf, size_t count) /* {{{ */ in php_stream_input_write() argument
76 static ssize_t php_stream_input_read(php_stream *stream, char *buf, size_t count) /* {{{ */ in php_stream_input_read() argument
78 php_stream_input_t *input = stream->abstract; in php_stream_input_read()
99 stream->eof = 1; in php_stream_input_read()
108 static int php_stream_input_close(php_stream *stream, int close_handle) /* {{{ */ in php_stream_input_close() argument
110 efree(stream->abstract); in php_stream_input_close()
111 stream->abstract = NULL; in php_stream_input_close()
117 static int php_stream_input_flush(php_stream *stream) /* {{{ */ in php_stream_input_flush() argument
123 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
125 php_stream_input_t *input = stream->abstract; in php_stream_input_seek()
149 static void php_stream_apply_filter_list(php_stream *stream, char *filterlist, int read_chain, int … in php_stream_apply_filter_list() argument
158 if ((temp_filter = php_stream_filter_create(p, NULL, php_stream_is_persistent(stream)))) { in php_stream_apply_filter_list()
159 php_stream_filter_append(&stream->readfilters, temp_filter); in php_stream_apply_filter_list()
165 if ((temp_filter = php_stream_filter_create(p, NULL, php_stream_is_persistent(stream)))) { in php_stream_apply_filter_list()
166 php_stream_filter_append(&stream->writefilters, temp_filter); in php_stream_apply_filter_list()
181 php_stream * stream = NULL; in php_stream_url_wrap_php() local
355 if (!(stream = php_stream_open_wrapper(p + 10, mode, options, opened_path))) { in php_stream_url_wrap_php()
365 php_stream_apply_filter_list(stream, p + 5, 1, 0); in php_stream_url_wrap_php()
367 php_stream_apply_filter_list(stream, p + 6, 0, 1); in php_stream_url_wrap_php()
369 …php_stream_apply_filter_list(stream, p, mode_rw & PHP_STREAM_FILTER_READ, mode_rw & PHP_STREAM_FIL… in php_stream_url_wrap_php()
376 php_stream_close(stream); in php_stream_url_wrap_php()
380 return stream; in php_stream_url_wrap_php()
398 stream = php_stream_sock_open_from_socket(fd, NULL); in php_stream_url_wrap_php()
399 if (stream) { in php_stream_url_wrap_php()
400 stream->ops = &php_stream_socket_ops; in php_stream_url_wrap_php()
401 return stream; in php_stream_url_wrap_php()
408 stream = php_stream_fopen_from_file(file, mode); in php_stream_url_wrap_php()
410 stream = php_stream_fopen_from_fd(fd, mode, NULL); in php_stream_url_wrap_php()
411 if (stream == NULL) { in php_stream_url_wrap_php()
417 if (pipe_requested && stream && context) { in php_stream_url_wrap_php()
420 …php_stream_set_option(stream, PHP_STREAM_OPTION_PIPE_BLOCKING, zval_get_long(blocking_pipes), NULL… in php_stream_url_wrap_php()
424 return stream; in php_stream_url_wrap_php()