Searched refs:stream (Results 1 - 25 of 121) sorted by relevance

12345

/PHP_TRUNK/ext/standard/tests/filters/
H A Dfilter_errors.inc18 $stream = fopen('php://memory', 'wb+');
20 fwrite($stream, b".\r\n$data");
21 fseek($stream, 0, SEEK_SET);
22 stream_get_line($stream, 8192, "\r\n");
24 $f = stream_filter_append($stream, $filter);
28 $stream = fopen('php://memory', 'wb+');
30 fwrite($stream, b"$data");
31 fseek($stream, 0, SEEK_SET);
33 stream_filter_append($stream, $filter);
34 stream_get_contents($stream);
[all...]
/PHP_TRUNK/ext/pgsql/tests/
H A Dnonblocking.inc3 function nb_is_readable($stream, $timeout = 1) {
4 $r = [$stream]; $w = []; $e = [];
7 function nb_is_writable($stream, $timeout = 1) {
8 $r = []; $w = [$stream]; $e = [];
/PHP_TRUNK/TSRM/
H A Dtsrm_nw.h27 TSRM_API int pclose(FILE* stream);
/PHP_TRUNK/main/streams/
H A Dphp_stream_glob_wrapper.h26 PHPAPI char* _php_glob_stream_get_path(php_stream *stream, int copy, size_t *plen STREAMS_DC);
27 #define php_glob_stream_get_path(stream, copy, plen) _php_glob_stream_get_path((stream), (copy), (plen) STREAMS_CC)
29 PHPAPI char* _php_glob_stream_get_pattern(php_stream *stream, int copy, size_t *plen STREAMS_DC);
30 #define php_glob_stream_get_pattern(stream, copy, plen) _php_glob_stream_get_pattern((stream), (copy), (plen) STREAMS_CC)
32 PHPAPI int _php_glob_stream_get_count(php_stream *stream, int *pflags STREAMS_DC);
33 #define php_glob_stream_get_count(stream, pflags) _php_glob_stream_get_count((stream), (pflags) STREAMS_CC)
H A Dfilter.c71 PHPAPI php_stream_bucket *php_stream_bucket_new(php_stream *stream, char *buf, size_t buflen, int own_buf, int buf_persistent) argument
73 int is_persistent = php_stream_is_persistent(stream);
337 php_stream *stream = chain->stream; local
349 if (&(stream->readfilters) == chain && (stream->writepos - stream->readpos) > 0) {
357 bucket = php_stream_bucket_new(stream, (char*) stream->readbuf + stream
435 php_stream *stream; local
[all...]
H A Dmmap.c25 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_access_t mode, size_t *mapped_len) argument
40 if (PHP_STREAM_OPTION_RETURN_OK == php_stream_set_option(stream, PHP_STREAM_OPTION_MMAP_API, PHP_STREAM_MMAP_MAP_RANGE, &range)) {
49 PHPAPI int _php_stream_mmap_unmap(php_stream *stream) argument
51 return php_stream_set_option(stream, PHP_STREAM_OPTION_MMAP_API, PHP_STREAM_MMAP_UNMAP, NULL) == PHP_STREAM_OPTION_RETURN_OK ? 1 : 0;
54 PHPAPI int _php_stream_mmap_unmap_ex(php_stream *stream, zend_off_t readden) argument
58 if (php_stream_seek(stream, readden, SEEK_CUR) != 0) {
61 if (php_stream_mmap_unmap(stream) == 0) {
H A Dphp_stream_mmap.h31 /* Does the stream support mmap ? */
35 * on the stream (win9x compatibility) */
37 /* Unmap the last range that was mapped for the stream */
63 #define php_stream_mmap_supported(stream) (_php_stream_set_option((stream), PHP_STREAM_OPTION_MMAP_API, PHP_STREAM_MMAP_SUPPORTED, NULL) == 0 ? 1 : 0)
65 /* Returns 1 if the stream in its current state can be memory mapped,
67 #define php_stream_mmap_possible(stream) (!php_stream_is_filtered((stream)) && php_stream_mmap_supported((stream)))
70 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_
[all...]
H A Dphp_stream_transport.h60 /* Bind the stream to a local address */
61 PHPAPI int php_stream_xport_bind(php_stream *stream,
67 PHPAPI int php_stream_xport_connect(php_stream *stream,
76 PHPAPI int php_stream_xport_listen(php_stream *stream,
83 PHPAPI int php_stream_xport_accept(php_stream *stream, php_stream **client,
91 PHPAPI int php_stream_xport_get_name(php_stream *stream, int want_peer,
101 /* Similar to recv() system call; read data from the stream, optionally
103 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen,
107 /* Similar to send() system call; send data to the stream, optionally
109 PHPAPI int php_stream_xport_sendto(php_stream *stream, cons
[all...]
H A Dcast.c85 php_stream *stream = (php_stream*)cookie; local
88 stream->fclose_stdiocast = PHP_STREAM_FCLOSE_NONE;
89 return php_stream_free(stream, PHP_STREAM_FREE_CLOSE | PHP_STREAM_FREE_KEEP_RSRC);
127 php_stream *stream = (php_stream*)cookie; local
130 stream->fclose_stdiocast = PHP_STREAM_FCLOSE_NONE;
131 return php_stream_free(stream, PHP_STREAM_FREE_CLOSE | PHP_STREAM_FREE_KEEP_RSRC);
148 void php_stream_mode_sanitize_fdopen_fopencookie(php_stream *stream, char *result) argument
152 const char *cur_mode = stream->mode;
191 PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show_err) argument
198 php_stream_flush(stream);
348 php_stream *stream = NULL; local
[all...]
H A Dmemory.c27 /* Memory streams use a dynamic memory buffer to emulate a stream.
28 * You can use php_stream_memory_open to create a readonly stream
37 /* {{{ ------- MEMORY stream implementation -------*/
49 static size_t php_stream_memory_write(php_stream *stream, const char *buf, size_t count) argument
51 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract;
85 static size_t php_stream_memory_read(php_stream *stream, char *buf, size_t count) argument
87 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract;
91 stream->eof = 1;
110 static int php_stream_memory_close(php_stream *stream, int close_handle) argument
112 php_stream_memory_data *ms = (php_stream_memory_data*)stream
125 php_stream_memory_flush(php_stream *stream) argument
134 php_stream_memory_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) argument
198 php_stream_memory_cast(php_stream *stream, int castas, void **ret) argument
204 php_stream_memory_stat(php_stream *stream, php_stream_statbuf *ssb) argument
247 php_stream_memory_set_option(php_stream *stream, int option, int value, void *ptrparam) argument
296 php_stream *stream; local
315 php_stream *stream; local
338 _php_stream_memory_get_buffer(php_stream *stream, size_t *length STREAMS_DC) argument
364 php_stream_temp_write(php_stream *stream, const char *buf, size_t count) argument
394 php_stream_temp_read(php_stream *stream, char *buf, size_t count) argument
415 php_stream_temp_close(php_stream *stream, int close_handle) argument
442 php_stream_temp_flush(php_stream *stream) argument
453 php_stream_temp_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) argument
473 php_stream_temp_cast(php_stream *stream, int castas, void **ret) argument
519 php_stream_temp_stat(php_stream *stream, php_stream_statbuf *ssb) argument
530 php_stream_temp_set_option(php_stream *stream, int option, int value, void *ptrparam) argument
565 php_stream *stream; local
593 php_stream *stream; local
625 php_stream *stream; local
[all...]
H A Dstreams.c70 php_stream *stream; local
77 stream = (php_stream*)rsrc->ptr;
80 fprintf(stderr, "forget_persistent: %s:%p\n", stream->ops->label, stream);
83 stream->res = NULL;
85 if (stream->ctx) {
86 zend_list_delete(stream->ctx);
107 PHPAPI int php_stream_from_persistent_id(const char *persistent_id, php_stream **stream) argument
113 if (stream) {
119 *stream
360 _php_stream_free(php_stream *stream, int close_options) argument
502 zend_hash_apply_with_argument(&EG(persistent_list), _php_stream_free_persistent, stream); local
553 _php_stream_fill_read_buffer(php_stream *stream, size_t size) argument
685 _php_stream_read(php_stream *stream, char *buf, size_t size) argument
755 _php_stream_eof(php_stream *stream) argument
772 _php_stream_putc(php_stream *stream, int c) argument
782 _php_stream_getc(php_stream *stream) argument
792 _php_stream_puts(php_stream *stream, const char *buf) argument
804 _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb) argument
824 php_stream_locate_eol(php_stream *stream, zend_string *buf) argument
866 _php_stream_get_line(php_stream *stream, char *buf, size_t maxlen, size_t *returned_len) argument
983 _php_stream_search_delim(php_stream *stream, size_t maxlen, size_t skiplen, const char *delim, size_t delim_len) argument
1007 php_stream_get_record(php_stream *stream, size_t maxlen, const char *delim, size_t delim_len) argument
1096 _php_stream_write_buffer(php_stream *stream, const char *buf, size_t count) argument
1141 _php_stream_write_filtered(php_stream *stream, const char *buf, size_t count, int flags) argument
1202 _php_stream_flush(php_stream *stream, int closing) argument
1219 _php_stream_write(php_stream *stream, const char *buf, size_t count) argument
1240 _php_stream_printf(php_stream *stream, const char *fmt, ...) argument
1260 _php_stream_tell(php_stream *stream) argument
1265 _php_stream_seek(php_stream *stream, zend_off_t offset, int whence) argument
1344 _php_stream_set_option(php_stream *stream, int option, int value, void *ptrparam) argument
1378 _php_stream_truncate_set_size(php_stream *stream, size_t newsize) argument
1616 php_stream *stream = (php_stream*)rsrc->ptr; local
1623 php_stream *stream = (php_stream*)rsrc->ptr; local
1968 php_stream *stream = NULL; local
2017 php_stream *stream = NULL; local
2159 php_stream_context_set(php_stream *stream, php_stream_context *context) argument
2273 php_stream *stream; local
[all...]
H A Dtransports.c60 php_stream *stream = NULL; local
75 switch(php_stream_from_persistent_id(persistent_id, &stream)) {
79 if (PHP_STREAM_OPTION_RETURN_OK == php_stream_set_option(stream, PHP_STREAM_OPTION_CHECK_LIVENESS, 0, NULL)) {
80 return stream;
83 php_stream_pclose(stream);
84 stream = NULL;
132 stream = (factory)(protocol, n,
136 if (stream) {
137 php_stream_context_set(stream, context);
143 if (-1 == php_stream_xport_connect(stream, nam
196 php_stream_xport_bind(php_stream *stream, const char *name, size_t namelen, zend_string **error_text ) argument
224 php_stream_xport_connect(php_stream *stream, const char *name, size_t namelen, int asynchronous, struct timeval *timeout, zend_string **error_text, int *error_code ) argument
260 php_stream_xport_listen(php_stream *stream, int backlog, zend_string **error_text) argument
284 php_stream_xport_accept(php_stream *stream, php_stream **client, zend_string **textaddr, void **addr, socklen_t *addrlen, struct timeval *timeout, zend_string **error_text ) argument
322 php_stream_xport_get_name(php_stream *stream, int want_peer, zend_string **textaddr, void **addr, socklen_t *addrlen ) argument
352 php_stream_xport_crypto_setup(php_stream *stream, php_stream_xport_crypt_method_t crypto_method, php_stream *session_stream) argument
373 php_stream_xport_crypto_enable(php_stream *stream, int activate) argument
395 php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, int flags, void **addr, socklen_t *addrlen, zend_string **textaddr ) argument
464 php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, int flags, void *addr, socklen_t addrlen) argument
504 php_stream_xport_shutdown(php_stream *stream, stream_shutdown_t how) argument
[all...]
/PHP_TRUNK/ext/gd/
H A Dgd_ctx.c49 php_stream * stream = (php_stream *)ctx->data; local
50 php_stream_write(stream, &ch, 1);
55 php_stream * stream = (php_stream *)ctx->data; local
56 return php_stream_write(stream, (void *)buf, l);
84 php_stream *stream; local
119 php_stream_from_zval_no_verify(stream, to_zval);
120 if (stream == NULL) {
129 stream = php_stream_open_wrapper(Z_STRVAL_P(to_zval), "wb", REPORT_ERRORS|IGNORE_PATH|IGNORE_URL_WIN, NULL);
130 if (stream == NULL) {
134 php_error_docref(NULL, E_WARNING, "Invalid 2nd parameter, it must a filename or a stream");
[all...]
/PHP_TRUNK/Zend/
H A Dzend_stream.c78 static void zend_stream_unmap(zend_stream *stream) { /* {{{ */ argument
80 if (stream->mmap.map) {
81 munmap(stream->mmap.map, stream->mmap.len + ZEND_MMAP_AHEAD);
84 if (stream->mmap.buf) {
85 efree(stream->mmap.buf);
87 stream->mmap.len = 0;
88 stream->mmap.pos = 0;
89 stream->mmap.map = 0;
90 stream
94 zend_stream_mmap_closer(zend_stream *stream) argument
[all...]
/PHP_TRUNK/ext/phar/
H A Ddirstream.h30 static size_t phar_dir_write(php_stream *stream, const char *buf, size_t count);
31 static size_t phar_dir_read( php_stream *stream, char *buf, size_t count);
32 static int phar_dir_close(php_stream *stream, int close_handle);
33 static int phar_dir_flush(php_stream *stream);
34 static int phar_dir_seek( php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset);
H A Dstream.h32 /* file/stream handlers */
33 static size_t phar_stream_write(php_stream *stream, const char *buf, size_t count);
34 static size_t phar_stream_read( php_stream *stream, char *buf, size_t count);
35 static int phar_stream_close(php_stream *stream, int close_handle);
36 static int phar_stream_flush(php_stream *stream);
37 static int phar_stream_seek( php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset);
38 static int phar_stream_stat( php_stream *stream, php_stream_statbuf *ssb);
/PHP_TRUNK/ext/zlib/
H A Dzlib_fopen_wrapper.c32 php_stream *stream; member in struct:php_gz_stream_data_t
35 static size_t php_gziop_read(php_stream *stream, char *buf, size_t count) argument
37 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract;
44 stream->eof = 1;
50 static size_t php_gziop_write(php_stream *stream, const char *buf, size_t count) argument
52 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract;
61 static int php_gziop_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) argument
63 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract;
76 static int php_gziop_close(php_stream *stream, int close_handle) argument
78 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream
96 php_gziop_flush(php_stream *stream) argument
117 php_stream *stream = NULL, *innerstream = NULL; local
[all...]
/PHP_TRUNK/ext/zip/
H A Dzip_stream.c39 php_stream *stream; member in struct:php_zip_stream_data_t
43 struct php_zip_stream_data_t *self = (struct php_zip_stream_data_t *) stream->abstract;
47 static size_t php_zip_ops_read(php_stream *stream, char *buf, size_t count) argument
58 stream->eof = 1;
59 php_error_docref(NULL, E_WARNING, "Zip stream error: %s", zip_file_strerror(self->zf));
63 stream->eof = 1;
64 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Zip stream error: %s", zip_error_strerror(err));
72 stream->eof = 1;
82 static size_t php_zip_ops_write(php_stream *stream, const char *buf, size_t count) argument
84 if (!stream) {
93 php_zip_ops_close(php_stream *stream, int close_handle) argument
114 php_zip_ops_flush(php_stream *stream) argument
124 php_zip_ops_stat(php_stream *stream, php_stream_statbuf *ssb) argument
217 php_stream *stream = NULL; local
279 php_stream *stream = NULL; local
[all...]
/PHP_TRUNK/ext/bz2/
H A Dbz2.c133 php_stream *stream; local
136 /* {{{ BZip2 stream implementation */
138 static size_t php_bz2iop_read(php_stream *stream, char *buf, size_t count) argument
140 struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract;
151 stream->eof = 0 == just_read;
161 static size_t php_bz2iop_write(php_stream *stream, const char *buf, size_t count) argument
164 struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract;
185 static int php_bz2iop_close(php_stream *stream, int close_handle) argument
187 struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract;
194 if (self->stream) {
203 php_bz2iop_flush(php_stream *stream) argument
244 php_stream *retstream = NULL, *stream = NULL; local
368 php_stream *stream; local
398 php_stream *stream = NULL; local
617 php_stream *stream; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dftp_fopen_wrapper.c73 #define GET_FTP_RESULT(stream) get_ftp_result((stream), tmp_line, sizeof(tmp_line))
83 static inline int get_ftp_result(php_stream *stream, char *buffer, size_t buffer_size) argument
85 while (php_stream_gets(stream, buffer, buffer_size-1) &&
94 static int php_stream_ftp_stream_stat(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb) argument
104 static int php_stream_ftp_stream_close(php_stream_wrapper *wrapper, php_stream *stream) argument
106 php_stream *controlstream = stream->wrapperthis;
110 if (strpbrk(stream->mode, "wa+")) {
114 /* For write modes close data stream first to signal EOF to server */
124 stream
137 php_stream *stream = NULL, *reuseid = NULL; local
323 php_fopen_do_pasv(php_stream *stream, char *ip, size_t ip_size, char **phoststart) argument
417 php_stream *stream = NULL, *datastream = NULL; local
609 php_ftp_dirstream_read(php_stream *stream, char *buf, size_t count) argument
650 php_ftp_dirstream_close(php_stream *stream, int close_handle) argument
689 php_stream *stream, *reuseid, *datastream = NULL; local
778 php_stream *stream = NULL; local
901 php_stream *stream = NULL; local
951 php_stream *stream = NULL; local
1030 php_stream *stream = NULL; local
1124 php_stream *stream = NULL; local
[all...]
H A Dimage.c103 static struct gfxinfo *php_handle_gif (php_stream * stream) argument
108 if (php_stream_seek(stream, 3, SEEK_CUR))
111 if (php_stream_read(stream, (char*)dim, sizeof(dim)) != sizeof(dim))
126 static struct gfxinfo *php_handle_psd (php_stream * stream) argument
131 if (php_stream_seek(stream, 11, SEEK_CUR))
134 if (php_stream_read(stream, (char*)dim, sizeof(dim)) != sizeof(dim))
147 static struct gfxinfo *php_handle_bmp (php_stream * stream) argument
153 if (php_stream_seek(stream, 11, SEEK_CUR))
156 if (php_stream_read(stream, (char*)dim, sizeof(dim)) != sizeof(dim))
198 static struct gfxinfo *php_handle_swc(php_stream * stream) argument
271 php_handle_swf(php_stream * stream) argument
297 php_handle_png(php_stream * stream) argument
365 php_read2(php_stream * stream) argument
378 php_next_marker(php_stream * stream, int last_marker, int comment_correction, int ff_read) argument
426 php_skip_variable(php_stream * stream) argument
441 php_read_APP(php_stream * stream, unsigned int marker, zval *info) argument
475 php_handle_jpeg(php_stream * stream, zval *info) argument
564 php_read4(php_stream * stream) argument
604 php_handle_jpc(php_stream * stream) argument
675 php_handle_jp2(php_stream *stream) argument
802 php_handle_tiff(php_stream * stream, zval *info, int motorola_intel) argument
883 php_handle_iff(php_stream * stream) argument
944 php_get_wbmp(php_stream *stream, struct gfxinfo **result, int check) argument
999 php_handle_wbmp(php_stream * stream) argument
1014 php_get_xbm(php_stream *stream, struct gfxinfo **result) argument
1074 php_handle_xbm(php_stream * stream) argument
1084 php_handle_ico(php_stream * stream) argument
1223 php_getimagetype(php_stream * stream, char *filetype) argument
1296 php_getimagesize_from_stream(php_stream *stream, zval *info, INTERNAL_FUNCTION_PARAMETERS) argument
1393 php_stream *stream = NULL; local
[all...]
H A Dfile.c127 #define PHP_STREAM_TO_ZVAL(stream, arg) \
129 php_stream_from_res(stream, Z_RES_P(arg));
173 le_stream_context = zend_register_list_destructors_ex(file_context_dtor, NULL, "stream-context", module_number);
336 php_stream *stream; local
343 PHP_STREAM_TO_ZVAL(stream, res);
358 if (php_stream_lock(stream, act)) {
392 md.stream = php_stream_open_wrapper(filename, "rb",
395 if (!md.stream) {
509 php_stream_close(md.stream);
520 php_stream *stream; local
570 php_stream *stream; local
717 php_stream *stream; local
833 php_stream *stream; local
857 php_stream *stream; local
881 php_stream *stream; local
915 php_stream *stream; local
957 php_stream *stream; local
977 php_stream *stream; local
1003 php_stream *stream; local
1050 php_stream *stream; local
1080 php_stream *stream; local
1167 php_stream *stream; local
1199 php_stream *stream; local
1220 php_stream *stream; local
1241 php_stream *stream; local
1263 php_stream *stream; local
1349 php_stream *stream; local
1402 php_stream *stream; local
1489 php_stream *stream; local
1513 php_stream *stream; local
1744 php_stream *stream; local
1812 php_stream *stream; local
1868 php_fputcsv(php_stream *stream, zval *fields, char delimiter, char enclosure, char escape_char) argument
1939 php_stream *stream; local
2025 php_fgetcsv(php_stream *stream, char delimiter, char enclosure, char escape_char, size_t buf_len, char *buf, zval *return_value) argument
[all...]
H A Dstreamsfuncs.c43 #define GET_CTX_OPT(stream, wrapper, name, val) (PHP_STREAM_CONTEXT(stream) && NULL != (val = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), wrapper, name)))
96 php_stream *stream = NULL; local
132 stream = php_stream_xport_create(ZSTR_VAL(host), ZSTR_LEN(host), REPORT_ERRORS,
138 if (stream == NULL) {
150 if (stream == NULL) {
168 php_stream_to_zval(stream, return_value);
180 php_stream *stream = NULL; local
207 stream
246 php_stream *stream = NULL, *clistream = NULL; local
295 php_stream *stream; local
321 php_stream *stream; local
350 php_stream *stream; local
398 php_stream *stream; local
478 php_stream *stream; local
580 php_stream *stream; local
618 php_stream *stream; local
668 php_stream *stream; local
916 php_stream *stream; local
1116 php_stream *stream; local
1246 php_stream *stream; local
1277 php_stream *stream; local
1302 php_stream *stream; local
1348 php_stream *stream; local
1376 php_stream *stream; local
1411 php_stream *stream; local
1438 php_stream *stream, *sessstream = NULL; local
1509 php_stream *stream = NULL; local
1540 php_stream *stream; local
1567 php_stream *stream; local
[all...]
H A Dphp_fopen_wrapper.c34 static size_t php_stream_output_write(php_stream *stream, const char *buf, size_t count) /* {{{ */ argument
41 static size_t php_stream_output_read(php_stream *stream, char *buf, size_t count) /* {{{ */ argument
43 stream->eof = 1;
48 static int php_stream_output_close(php_stream *stream, int close_handle) /* {{{ */ argument
72 static size_t php_stream_input_write(php_stream *stream, const char *buf, size_t count) /* {{{ */ argument
78 static size_t php_stream_input_read(php_stream *stream, char *buf, size_t count) /* {{{ */ argument
80 php_stream_input_t *input = stream->abstract;
97 stream->eof = 1;
106 static int php_stream_input_close(php_stream *stream, int close_handle) /* {{{ */ argument
108 efree(stream
115 php_stream_input_flush(php_stream *stream) argument
121 php_stream_input_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset) argument
147 php_stream_apply_filter_list(php_stream *stream, char *filterlist, int read_chain, int write_chain) argument
179 php_stream * stream = NULL; local
[all...]
/PHP_TRUNK/main/
H A Dphp_streams.h94 * The only exceptions to this rule are that stream implementations can use
120 size_t (*write)(php_stream *stream, const char *buf, size_t count);
121 size_t (*read)(php_stream *stream, char *buf, size_t count);
122 int (*close)(php_stream *stream, int close_handle);
123 int (*flush)(php_stream *stream);
128 int (*seek)(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset);
129 int (*cast)(php_stream *stream, int castas, void **ret);
130 int (*stat)(php_stream *stream, php_stream_statbuf *ssb);
131 int (*set_option)(php_stream *stream, int option, int value, void *ptrparam);
135 /* open/create a wrapped stream */
[all...]

Completed in 87 milliseconds

12345