Home
last modified time | relevance | path

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

12345678910>>...33

/PHP-8.2/sapi/fpm/fpm/
H A Dzlog.c352 stream->len = zlog_stream_prefix_ex(stream, stream->function, stream->line); in zlog_stream_unbuffered_write()
453 stream->buf.data + stream->prefix_len, stream->len - stream->prefix_len); in zlog_stream_buf_flush()
470 stream->len = zlog_stream_prefix_ex(stream, stream->function, stream->line); in zlog_stream_buf_append()
499 zlog_stream_prefix_ex(stream, stream->function, stream->line); in zlog_stream_buf_append()
504 stream->len = zlog_truncate_buf(stream->buf.data, stream->len, 0); in zlog_stream_buf_append()
529 (stream->use_fd || stream->use_stderr || stream->use_syslog); in zlog_stream_init_internal()
684 stream->buf.data, stream->buf.size, stream->use_syslog); in zlog_stream_prefix_ex()
694 stream->buf.data, stream->buf.size, stream->use_syslog); in zlog_stream_prefix_ex()
711 stream, stream->msg_prefix, stream->msg_prefix_len); in zlog_stream_prefix_ex()
785 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.2/main/streams/
H A Dstreams.c504 stream->wrapper->wops->stream_closer(stream->wrapper, stream); in _php_stream_free()
562 justread = stream->ops->read(stream, chunk_buf, stream->chunk_size); in _php_stream_fill_read_buffer()
604 … memmove(stream->readbuf, stream->readbuf + stream->readpos, stream->writepos - stream->readpos); in _php_stream_fill_read_buffer()
612 stream->readbuf = perealloc(stream->readbuf, stream->readbuflen, in _php_stream_fill_read_buffer()
664 if (stream->readbuf && stream->readbuflen - stream->writepos < stream->chunk_size) { in _php_stream_fill_read_buffer()
666 … memmove(stream->readbuf, stream->readbuf + stream->readpos, stream->writepos - stream->readpos); in _php_stream_fill_read_buffer()
674 if (stream->readbuflen - stream->writepos < stream->chunk_size) { in _php_stream_fill_read_buffer()
676 stream->readbuf = perealloc(stream->readbuf, stream->readbuflen, in _php_stream_fill_read_buffer()
680 justread = stream->ops->read(stream, (char*)stream->readbuf + stream->writepos, in _php_stream_fill_read_buffer()
1144 stream->ops->seek(stream, stream->position, SEEK_SET, &stream->position); in _php_stream_write_buffer()
[all …]
H A Dcast.c202 if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { in _php_stream_cast()
205 stream->ops->seek(stream, stream->position, SEEK_SET, &dummy); in _php_stream_cast()
206 stream->readpos = stream->writepos = 0; in _php_stream_cast()
213 if (stream->stdiocast) { in _php_stream_cast()
223 stream->ops->cast && in _php_stream_cast()
225 stream->ops->cast(stream, castas, ret) == SUCCESS in _php_stream_cast()
266 …if (!php_stream_is_filtered(stream) && stream->ops->cast && stream->ops->cast(stream, castas, NULL… in _php_stream_cast()
267 if (FAILURE == stream->ops->cast(stream, castas, ret)) { in _php_stream_cast()
305 } else if (stream->ops->cast && stream->ops->cast(stream, castas, ret) == SUCCESS) { in _php_stream_cast()
325 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.c78 stream->eof = 1; in php_stream_memory_read()
132 stream->eof = 0; in php_stream_memory_seek()
143 stream->eof = 0; in php_stream_memory_seek()
155 stream->eof = 0; in php_stream_memory_seek()
170 stream->eof = 0; in php_stream_memory_seek()
292 php_stream *stream; in _php_stream_memory_create() local
301 return stream; in _php_stream_memory_create()
316 return stream; in _php_stream_memory_open()
564 return stream; in _php_stream_temp_create_ex()
592 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()
185 php_stream_pclose(stream); in _php_stream_xport_create()
187 php_stream_close(stream); in _php_stream_xport_create()
189 stream = NULL; in _php_stream_xport_create()
195 return stream; in _php_stream_xport_create()
[all …]
/PHP-8.2/main/
H A Dphp_streams.h246 ((php_stream_context*) ((stream)->ctx ? ((stream)->ctx->ptr) : NULL))
262 #define php_stream_auto_cleanup(stream) { (stream)->__exposed = 1; } argument
266 #define php_stream_to_zval(stream, zval) { ZVAL_RES(zval, (stream)->res); (stream)->__exposed = 1; } argument
314 #define php_stream_tell(stream) _php_stream_tell((stream)) argument
334 #define php_stream_eof(stream) _php_stream_eof((stream)) argument
337 #define php_stream_getc(stream) _php_stream_getc((stream)) argument
340 #define php_stream_putc(stream, c) _php_stream_putc((stream), (c)) argument
343 #define php_stream_flush(stream) _php_stream_flush((stream), 0) argument
346 #define php_stream_sync(stream, d) _php_stream_sync((stream), (d)) argument
521 #define php_stream_is(stream, anops) ((stream)->ops == anops) argument
[all …]
/PHP-8.2/ext/standard/
H A Dimage.c419 length = php_read2(stream); in php_read_APP()
599 php_read2(stream); /* Lsiz */ in php_handle_jpc()
600 php_read2(stream); /* Rsiz */ in php_handle_jpc()
1143 php_stream* stream; member
1185 avif_stream.stream = stream; in php_handle_avif()
1206 avif_stream.stream = stream; in php_is_image_avif()
1421 if (!php_stream_rewind(stream) && php_is_image_avif(stream)) { in php_getimagetype()
1448 if (!stream) { in php_getimagesize_from_stream()
1546 php_stream *stream = NULL; in php_getimagesize_from_any() local
1574 if (!stream) { in php_getimagesize_from_any()
[all …]
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 Dstreamsfuncs.c333 php_stream *stream; in PHP_FUNCTION() local
364 php_stream *stream; in PHP_FUNCTION() local
396 php_stream *stream; in PHP_FUNCTION() local
446 php_stream *stream; in PHP_FUNCTION() local
539 php_stream *stream; in PHP_FUNCTION() local
630 php_stream *stream; in stream_array_to_fd_set() local
670 php_stream *stream; in stream_array_from_fd_set() local
735 if ((stream->writepos - stream->readpos) > 0) { in stream_array_emulate_read_fd_set()
982 if (stream) { in decode_context_param()
1223 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.2/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.2/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));
/PHP-8.2/ext/sodium/tests/
H A Dcrypto_secretstream.phpt19 $stream = $res[0];
22 $c1 = sodium_crypto_secretstream_xchacha20poly1305_push($stream, $msg1, $ad);
27 $r1 = sodium_crypto_secretstream_xchacha20poly1305_pull($stream, $c1, $ad);
28 $r2 = sodium_crypto_secretstream_xchacha20poly1305_pull($stream, $c2);
35 var_dump(sodium_crypto_secretstream_xchacha20poly1305_pull($stream, $c2));
36 var_dump(sodium_crypto_secretstream_xchacha20poly1305_pull($stream, 'x'));
39 $r1 = sodium_crypto_secretstream_xchacha20poly1305_pull($stream, $c1);
41 $r1 = sodium_crypto_secretstream_xchacha20poly1305_pull($stream, $c1, $ad);
45 sodium_crypto_secretstream_xchacha20poly1305_rekey($stream);
46 $r1 = sodium_crypto_secretstream_xchacha20poly1305_pull($stream, $c1, $ad);
[all …]
/PHP-8.2/ext/zlib/
H A Dzlib.stub.php207 * @param resource $stream
213 * @param resource $stream
220 * @param resource $stream
226 * @param resource $stream
232 * @param resource $stream
238 * @param resource $stream
244 * @param resource $stream
250 * @param resource $stream
256 * @param resource $stream
262 * @param resource $stream
[all …]
H A Dzlib_fopen_wrapper.c30 php_stream *stream; member
42 stream->eof = 1; in php_gziop_read()
81 if (self->stream) { in php_gziop_close()
82 php_stream_close(self->stream); in php_gziop_close()
83 self->stream = NULL; in php_gziop_close()
91 static int php_gziop_flush(php_stream *stream) in php_gziop_flush() argument
112 php_stream *stream = NULL, *innerstream = NULL; in php_stream_gzopen() local
135 self->stream = innerstream; in php_stream_gzopen()
145 if (stream) { in php_stream_gzopen()
146 stream->flags |= PHP_STREAM_FLAG_NO_BUFFER; in php_stream_gzopen()
[all …]
/PHP-8.2/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()
405 stream = php_stream_bz2open_from_BZFILE(bz, mode, stream); in PHP_FUNCTION()
411 if (stream) { in PHP_FUNCTION()
[all …]
/PHP-8.2/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.2/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.2/ext/standard/libavifinfo/
H A Davifinfo.c110 *data = stream->read(stream->stream, num_bytes); in AvifInfoInternalRead()
120 if (stream->skip == NULL) { in AvifInfoInternalSkip()
129 stream->skip(stream->stream, num_bytes); in AvifInfoInternalSkip()
690 AvifInfoInternalForward stream; in AvifInfoIdentify() local
691 stream.data = data; in AvifInfoIdentify()
692 stream.data_size = data_size; in AvifInfoIdentify()
701 AvifInfoInternalForward stream; in AvifInfoGetFeatures() local
702 stream.data = data; in AvifInfoGetFeatures()
703 stream.data_size = data_size; in AvifInfoGetFeatures()
717 internal_stream.stream = stream; in AvifInfoIdentifyStream()
[all …]
/PHP-8.2/ext/zlib/tests/
H A Dbug75273.phpt28 $stream = fopen('php://memory', 'rb+');
33 …$deflate_filter = stream_filter_append($stream, 'zlib.deflate', STREAM_FILTER_WRITE, ['window' =>…
34 rewind($stream);
35 fwrite($stream, $in_data);
38 rewind($stream);
39 $out_data = stream_get_contents($stream);
42 …$inflate_filter = stream_filter_prepend($stream, 'zlib.inflate', STREAM_FILTER_WRITE, ['window' =…
43 rewind($stream);
44 $fwrite_len = fwrite($stream, $out_data);
52 fclose($stream);

Completed in 61 milliseconds

12345678910>>...33