Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 763) sorted by relevance

12345678910>>...31

/PHP-8.0/sapi/fpm/fpm/
H A Dzlog.c356 stream->len = zlog_stream_prefix_ex(stream, stream->function, stream->line); in zlog_stream_unbuffered_write()
435 stream->buf.data[stream->len++] = c; in zlog_stream_buf_copy_char()
455 stream->buf.data + stream->prefix_len, stream->len - stream->prefix_len); in zlog_stream_buf_flush()
472 stream->len = zlog_stream_prefix_ex(stream, stream->function, stream->line); in zlog_stream_buf_append()
501 zlog_stream_prefix_ex(stream, stream->function, stream->line); in zlog_stream_buf_append()
506 stream->len = zlog_truncate_buf(stream->buf.data, stream->len, 0); in zlog_stream_buf_append()
531 (stream->use_fd || stream->use_stderr || stream->use_syslog); in zlog_stream_init_internal()
686 stream->buf.data, stream->buf.size, stream->use_syslog); in zlog_stream_prefix_ex()
702 stream, stream->msg_prefix, stream->msg_prefix_len); in zlog_stream_prefix_ex()
776 zlog_stream_prefix_ex(stream, stream->function, stream->line); in zlog_stream_finish_buffer_suffix()
[all …]
H A Dzlog.h93 void zlog_stream_init(struct zlog_stream *stream, int flags);
94 void zlog_stream_init_ex(struct zlog_stream *stream, int flags, int fd);
96 void zlog_stream_set_wrapping(struct zlog_stream *stream, zlog_bool wrap);
98 void zlog_stream_set_child_pid(struct zlog_stream *stream, int child_pid);
103 struct zlog_stream *stream, const char *suffix, const char *final_suffix);
104 #define zlog_stream_prefix(stream) \ argument
105 zlog_stream_prefix_ex(stream, __func__, __LINE__)
107 ssize_t zlog_stream_format(struct zlog_stream *stream, const char *fmt, ...)
111 zlog_bool zlog_stream_finish(struct zlog_stream *stream);
112 void zlog_stream_destroy(struct zlog_stream *stream);
[all …]
/PHP-8.0/main/streams/
H A Dstreams.c501 stream->wrapper->wops->stream_closer(stream->wrapper, stream); in _php_stream_free()
559 justread = stream->ops->read(stream, chunk_buf, stream->chunk_size); in _php_stream_fill_read_buffer()
601 … memmove(stream->readbuf, stream->readbuf + stream->readpos, stream->writepos - stream->readpos); in _php_stream_fill_read_buffer()
609 stream->readbuf = perealloc(stream->readbuf, stream->readbuflen, in _php_stream_fill_read_buffer()
650 if (stream->readbuf && stream->readbuflen - stream->writepos < stream->chunk_size) { in _php_stream_fill_read_buffer()
652 … memmove(stream->readbuf, stream->readbuf + stream->readpos, stream->writepos - stream->readpos); in _php_stream_fill_read_buffer()
660 if (stream->readbuflen - stream->writepos < stream->chunk_size) { in _php_stream_fill_read_buffer()
662 stream->readbuf = perealloc(stream->readbuf, stream->readbuflen, in _php_stream_fill_read_buffer()
666 justread = stream->ops->read(stream, (char*)stream->readbuf + stream->writepos, in _php_stream_fill_read_buffer()
1130 stream->ops->seek(stream, stream->position, SEEK_SET, &stream->position); in _php_stream_write_buffer()
[all …]
H A Dcast.c197 if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { in _php_stream_cast()
200 stream->ops->seek(stream, stream->position, SEEK_SET, &dummy); in _php_stream_cast()
201 stream->readpos = stream->writepos = 0; in _php_stream_cast()
208 if (stream->stdiocast) { in _php_stream_cast()
218 stream->ops->cast && in _php_stream_cast()
220 stream->ops->cast(stream, castas, ret) == SUCCESS in _php_stream_cast()
261 …if (!php_stream_is_filtered(stream) && stream->ops->cast && stream->ops->cast(stream, castas, NULL… in _php_stream_cast()
262 if (FAILURE == stream->ops->cast(stream, castas, ret)) { in _php_stream_cast()
300 } else if (stream->ops->cast && stream->ops->cast(stream, castas, ret) == SUCCESS) { in _php_stream_cast()
320 if ((stream->writepos - stream->readpos) > 0 && in _php_stream_cast()
[all …]
H A Dphp_stream_mmap.h61 #define php_stream_mmap_supported(stream) (_php_stream_set_option((stream), PHP_STREAM_OPTION_MMAP_… argument
65 #define php_stream_mmap_possible(stream) (!php_stream_is_filtered((stream)) && php_stream_mmap_su… argument
68 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mm…
69 #define php_stream_mmap_range(stream, offset, length, mode, mapped_len) _php_stream_mmap_range((str… argument
72 PHPAPI int _php_stream_mmap_unmap(php_stream *stream);
73 #define php_stream_mmap_unmap(stream) _php_stream_mmap_unmap((stream)) argument
75 PHPAPI int _php_stream_mmap_unmap_ex(php_stream *stream, zend_off_t readden);
76 #define php_stream_mmap_unmap_ex(stream, readden) _php_stream_mmap_unmap_ex((stream), (readden)) argument
H A Dphp_stream_glob_wrapper.h22 PHPAPI char* _php_glob_stream_get_path(php_stream *stream, size_t *plen STREAMS_DC);
23 #define php_glob_stream_get_path(stream, plen) _php_glob_stream_get_path((stream), (plen) STREAMS_C… argument
25 PHPAPI char* _php_glob_stream_get_pattern(php_stream *stream, size_t *plen STREAMS_DC);
26 #define php_glob_stream_get_pattern(stream, plen) _php_glob_stream_get_pattern((stream), (plen) STR… argument
28 PHPAPI int _php_glob_stream_get_count(php_stream *stream, int *pflags STREAMS_DC);
29 #define php_glob_stream_get_count(stream, pflags) _php_glob_stream_get_count((stream), (pflags) STR… argument
H A Dfilter.c308 php_stream *stream = chain->stream; in php_stream_filter_append_ex() local
320 if (&(stream->readfilters) == chain && (stream->writepos - stream->readpos) > 0) { in php_stream_filter_append_ex()
328 …bucket = php_stream_bucket_new(stream, (char*) stream->readbuf + stream->readpos, stream->writepos… in php_stream_filter_append_ex()
332 if (stream->readpos + consumed > (uint32_t)stream->writepos) { in php_stream_filter_append_ex()
368 if (stream->readbuflen - stream->writepos < bucket->buflen) { in php_stream_filter_append_ex()
370 stream->readbuf = perealloc(stream->readbuf, stream->readbuflen, stream->is_persistent); in php_stream_filter_append_ex()
414 stream = chain->stream; in _php_stream_filter_flush()
454 memcpy(stream->readbuf, stream->readbuf + stream->readpos, stream->writepos - stream->readpos); in _php_stream_filter_flush()
456 stream->writepos -= stream->readpos; in _php_stream_filter_flush()
458 if (flushed_size > (stream->readbuflen - stream->writepos)) { in _php_stream_filter_flush()
[all …]
H A Dmemory.c84 stream->eof = 1; in php_stream_memory_read()
142 stream->eof = 0; in php_stream_memory_seek()
153 stream->eof = 0; in php_stream_memory_seek()
165 stream->eof = 0; in php_stream_memory_seek()
180 stream->eof = 0; in php_stream_memory_seek()
301 php_stream *stream; in _php_stream_memory_create() local
312 return stream; in _php_stream_memory_create()
337 return stream; in _php_stream_memory_open()
591 return stream; in _php_stream_temp_create_ex()
619 return stream; in _php_stream_temp_open()
[all …]
H A Dtransports.c60 php_stream *stream = NULL; in _php_stream_xport_create() local
82 return stream; in _php_stream_xport_create()
85 php_stream_pclose(stream); in _php_stream_xport_create()
86 stream = NULL; in _php_stream_xport_create()
131 stream = (factory)(protocol, n, in _php_stream_xport_create()
135 if (stream) { in _php_stream_xport_create()
182 php_stream_pclose(stream); in _php_stream_xport_create()
184 php_stream_close(stream); in _php_stream_xport_create()
186 stream = NULL; in _php_stream_xport_create()
192 return stream; in _php_stream_xport_create()
[all …]
/PHP-8.0/main/
H A Dphp_streams.h240 ((php_stream_context*) ((stream)->ctx ? ((stream)->ctx->ptr) : NULL))
256 #define php_stream_auto_cleanup(stream) { (stream)->__exposed = 1; } argument
260 #define php_stream_to_zval(stream, zval) { ZVAL_RES(zval, (stream)->res); (stream)->__exposed = 1; } argument
308 #define php_stream_tell(stream) _php_stream_tell((stream)) argument
328 #define php_stream_eof(stream) _php_stream_eof((stream)) argument
331 #define php_stream_getc(stream) _php_stream_getc((stream)) argument
334 #define php_stream_putc(stream, c) _php_stream_putc((stream), (c)) argument
337 #define php_stream_flush(stream) _php_stream_flush((stream), 0) argument
347 #define php_stream_puts(stream, buf) _php_stream_puts((stream), (buf)) argument
503 #define php_stream_is(stream, anops) ((stream)->ops == anops) argument
[all …]
/PHP-8.0/ext/standard/
H A Dftp_fopen_wrapper.c299 return stream; in php_ftp_fopen_connect()
306 if (stream) { in php_ftp_fopen_connect()
459 if (!stream) { in php_stream_url_wrap_ftp()
591 if (stream) { in php_stream_url_wrap_ftp()
696 if (!stream) { in php_stream_ftp_opendir()
762 if (stream) { in php_stream_ftp_opendir()
888 if (stream) { in php_stream_ftp_url_stat()
937 if (stream) { in php_stream_ftp_unlink()
1015 if (stream) { in php_stream_ftp_rename()
1107 if (stream) { in php_stream_ftp_mkdir()
[all …]
H A Dimage.c435 length = php_read2(stream); in php_read_APP()
615 php_read2(stream); /* Lsiz */ in php_handle_jpc()
616 php_read2(stream); /* Rsiz */ in php_handle_jpc()
943 i = php_stream_getc(stream); in php_get_wbmp()
951 i = php_stream_getc(stream); in php_get_wbmp()
964 i = php_stream_getc(stream); in php_get_wbmp()
1065 php_get_xbm(stream, &result); in php_handle_xbm()
1378 if (!stream) { in php_getimagesize_from_stream()
1473 php_stream *stream = NULL; in php_getimagesize_from_any() local
1502 if (!stream) { in php_getimagesize_from_any()
[all …]
H A Dstreamsfuncs.c318 php_stream *stream; in PHP_FUNCTION() local
349 php_stream *stream; in PHP_FUNCTION() local
381 php_stream *stream; in PHP_FUNCTION() local
431 php_stream *stream; in PHP_FUNCTION() local
524 php_stream *stream; in PHP_FUNCTION() local
615 php_stream *stream; in stream_array_to_fd_set() local
655 php_stream *stream; in stream_array_from_fd_set() local
720 if ((stream->writepos - stream->readpos) > 0) { in stream_array_emulate_read_fd_set()
957 if (stream) { in decode_context_param()
1198 if (strchr(stream->mode, 'r') || strchr(stream->mode, '+')) { in apply_filter_to_stream()
[all …]
H A Dphp_fopen_wrapper.c41 stream->eof = 1; in php_stream_output_read()
99 stream->eof = 1; in php_stream_input_read()
110 efree(stream->abstract); in php_stream_input_close()
111 stream->abstract = NULL; in php_stream_input_close()
181 php_stream * stream = NULL; in php_stream_url_wrap_php() local
376 php_stream_close(stream); in php_stream_url_wrap_php()
380 return stream; in php_stream_url_wrap_php()
399 if (stream) { in php_stream_url_wrap_php()
401 return stream; in php_stream_url_wrap_php()
411 if (stream == NULL) { in php_stream_url_wrap_php()
[all …]
/PHP-8.0/ext/zlib/
H A Dzlib.stub.php41 * @param resource $stream
47 * @param resource $stream
53 * @param resource $stream
59 * @param resource $stream
65 * @param resource $stream
71 * @param resource $stream
77 * @param resource $stream
83 * @param resource $stream
89 * @param resource $stream
95 * @param resource $stream
[all …]
H A Dzlib_fopen_wrapper.c28 php_stream *stream; member
40 stream->eof = 1; in php_gziop_read()
79 if (self->stream) { in php_gziop_close()
80 php_stream_close(self->stream); in php_gziop_close()
81 self->stream = NULL; in php_gziop_close()
89 static int php_gziop_flush(php_stream *stream) in php_gziop_flush() argument
110 php_stream *stream = NULL, *innerstream = NULL; in php_stream_gzopen() local
133 self->stream = innerstream; in php_stream_gzopen()
143 if (stream) { in php_stream_gzopen()
144 stream->flags |= PHP_STREAM_FLAG_NO_BUFFER; in php_stream_gzopen()
[all …]
/PHP-8.0/ext/standard/tests/streams/
H A Dbug68948.phpt8 $stream = fopen("php://memory", "r+");
9 fwrite($stream, $testString);
10 rewind($stream);
12 var_dump(fread($stream, 10));
13 var_dump(ftell($stream));
14 var_dump(feof($stream));
16 rewind($stream);
18 var_dump(fread($stream, 11));
19 var_dump(ftell($stream));
20 var_dump(feof($stream));
H A Dbug54946.phpt6 $stream = fopen($filename, "w"); // w or a
7 $retval = stream_get_contents($stream, 1, 1);
8 fclose($stream);
16 $stream = fopen($filename, "a");
17 $retval = stream_get_contents($stream, 1, 1);
19 fclose($stream);
26 $stream = fopen($filename, "a");
27 fseek($stream, 1);
28 $retval = stream_get_contents($stream, 1);
30 fclose($stream);
/PHP-8.0/ext/standard/tests/file/
H A Dfgetc_basic.phpt68 resource(%d) of type (stream)
72 resource(%d) of type (stream)
76 resource(%d) of type (stream)
80 resource(%d) of type (stream)
84 resource(%d) of type (stream)
88 resource(%d) of type (stream)
94 resource(%d) of type (stream)
98 resource(%d) of type (stream)
102 resource(%d) of type (stream)
106 resource(%d) of type (stream)
[all …]
H A D007_basic.phpt100 resource(%d) of type (stream)
109 resource(%d) of type (stream)
118 resource(%d) of type (stream)
127 resource(%d) of type (stream)
136 resource(%d) of type (stream)
145 resource(%d) of type (stream)
154 resource(%d) of type (stream)
163 resource(%d) of type (stream)
172 resource(%d) of type (stream)
181 resource(%d) of type (stream)
[all …]
/PHP-8.0/ext/sodium/tests/
H A Dcrypto_secretstream.phpt18 $stream = $res[0];
21 $c1 = sodium_crypto_secretstream_xchacha20poly1305_push($stream, $msg1, $ad);
26 $r1 = sodium_crypto_secretstream_xchacha20poly1305_pull($stream, $c1, $ad);
27 $r2 = sodium_crypto_secretstream_xchacha20poly1305_pull($stream, $c2);
34 var_dump(sodium_crypto_secretstream_xchacha20poly1305_pull($stream, $c2));
35 var_dump(sodium_crypto_secretstream_xchacha20poly1305_pull($stream, 'x'));
38 $r1 = sodium_crypto_secretstream_xchacha20poly1305_pull($stream, $c1);
40 $r1 = sodium_crypto_secretstream_xchacha20poly1305_pull($stream, $c1, $ad);
44 sodium_crypto_secretstream_xchacha20poly1305_rekey($stream);
45 $r1 = sodium_crypto_secretstream_xchacha20poly1305_pull($stream, $c1, $ad);
[all …]
/PHP-8.0/ext/bz2/
H A Dbz2.c63 php_stream *stream; member
82 stream->eof = 1; in php_bz2iop_read()
135 if (self->stream) { in php_bz2iop_close()
224 if (stream) { in _php_stream_bz2open()
248 if (stream) { in _php_stream_bz2open()
249 php_stream_close(stream); in _php_stream_bz2open()
309 php_stream *stream; in PHP_FUNCTION() local
374 … else if (stream_mode_len == 1 && stream->mode[0] != 'r' && stream->mode[0] != 'w' && stream->mode… in PHP_FUNCTION()
407 stream = php_stream_bz2open_from_BZFILE(bz, mode, stream); in PHP_FUNCTION()
413 if (stream) { in PHP_FUNCTION()
[all …]
/PHP-8.0/ext/standard/tests/filters/
H A Dfilter_errors.inc18 $stream = fopen('php://memory', 'wb+');
20 fwrite($stream, ".\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, "$data");
31 fseek($stream, 0, SEEK_SET);
33 stream_filter_append($stream, $filter);
34 stream_get_contents($stream);
/PHP-8.0/ext/sqlite3/tests/
H A Dsqlite3_30_blobopen.phpt2 SQLite3::blobOpen stream test
25 var_dump($stream);
29 var_dump(fwrite($stream, 'ABCD'));
31 var_dump(fclose($stream));
34 var_dump($stream);
38 fseek($stream, 0);
43 var_dump(fclose($stream));
57 resource(%d) of type (stream)
60 Writing to read-only stream
66 Opening stream in write mode
[all …]
/PHP-8.0/ext/zlib/tests/
H A Dbug75273.phpt30 $stream = fopen('php://memory', 'rb+');
35 …$deflate_filter = stream_filter_append($stream, 'zlib.deflate', STREAM_FILTER_WRITE, ['window' =>…
36 rewind($stream);
37 fwrite($stream, $in_data);
40 rewind($stream);
41 $out_data = stream_get_contents($stream);
44 …$inflate_filter = stream_filter_prepend($stream, 'zlib.inflate', STREAM_FILTER_WRITE, ['window' =…
45 rewind($stream);
46 $fwrite_len = fwrite($stream, $out_data);
54 fclose($stream);

Completed in 74 milliseconds

12345678910>>...31