Home
last modified time | relevance | path

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

12345678910>>...34

/php-src/sapi/fpm/fpm/
H A Dzlog.c355 stream->len = zlog_stream_prefix_ex(stream, stream->function, stream->line); in zlog_stream_unbuffered_write()
456 stream->buf.data + stream->prefix_len, stream->len - stream->prefix_len); in zlog_stream_buf_flush()
473 stream->len = zlog_stream_prefix_ex(stream, stream->function, stream->line); in zlog_stream_buf_append()
502 zlog_stream_prefix_ex(stream, stream->function, stream->line); in zlog_stream_buf_append()
507 stream->len = zlog_truncate_buf(stream->buf.data, stream->len, 0); in zlog_stream_buf_append()
532 (stream->use_fd || stream->use_stderr || stream->use_syslog); in zlog_stream_init_internal()
687 stream->buf.data, stream->buf.size, stream->use_syslog); in zlog_stream_prefix_ex()
697 stream->buf.data, stream->buf.size, stream->use_syslog); in zlog_stream_prefix_ex()
714 stream, stream->msg_prefix, stream->msg_prefix_len); in zlog_stream_prefix_ex()
788 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-src/main/streams/
H A Dstreams.c504 stream->wrapper->wops->stream_closer(stream->wrapper, stream); in _php_stream_free()
565 justread = stream->ops->read(stream, chunk_buf, stream->chunk_size); in _php_stream_fill_read_buffer()
608 … memmove(stream->readbuf, stream->readbuf + stream->readpos, stream->writepos - stream->readpos); in _php_stream_fill_read_buffer()
616 stream->readbuf = perealloc(stream->readbuf, stream->readbuflen, in _php_stream_fill_read_buffer()
668 if (stream->readbuf && stream->readbuflen - stream->writepos < stream->chunk_size) { in _php_stream_fill_read_buffer()
670 … memmove(stream->readbuf, stream->readbuf + stream->readpos, stream->writepos - stream->readpos); in _php_stream_fill_read_buffer()
678 if (stream->readbuflen - stream->writepos < stream->chunk_size) { in _php_stream_fill_read_buffer()
680 stream->readbuf = perealloc(stream->readbuf, stream->readbuflen, in _php_stream_fill_read_buffer()
684 justread = stream->ops->read(stream, (char*)stream->readbuf + stream->writepos, in _php_stream_fill_read_buffer()
1162 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.c84 stream->eof = 1; in php_stream_memory_read()
138 stream->eof = 0; in php_stream_memory_seek()
142 stream->eof = 0; in php_stream_memory_seek()
155 stream->eof = 0; in php_stream_memory_seek()
162 stream->eof = 0; in php_stream_memory_seek()
171 stream->eof = 0; in php_stream_memory_seek()
302 return stream; in _php_stream_memory_create()
317 return stream; in _php_stream_memory_open()
565 return stream; in _php_stream_temp_create_ex()
593 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()
132 stream = (factory)(protocol, n, in _php_stream_xport_create()
136 if (stream) { in _php_stream_xport_create()
187 php_stream_pclose(stream); in _php_stream_xport_create()
189 php_stream_close(stream); in _php_stream_xport_create()
191 stream = NULL; in _php_stream_xport_create()
197 return stream; in _php_stream_xport_create()
[all …]
/php-src/main/
H A Dphp_streams.h251 ((php_stream_context*) ((stream)->ctx ? ((stream)->ctx->ptr) : NULL))
267 #define php_stream_auto_cleanup(stream) { (stream)->__exposed = 1; } argument
271 #define php_stream_to_zval(stream, zval) { ZVAL_RES(zval, (stream)->res); (stream)->__exposed = 1; } argument
319 #define php_stream_tell(stream) _php_stream_tell((stream)) argument
339 #define php_stream_eof(stream) _php_stream_eof((stream)) argument
342 #define php_stream_getc(stream) _php_stream_getc((stream)) argument
345 #define php_stream_putc(stream, c) _php_stream_putc((stream), (c)) argument
348 #define php_stream_flush(stream) _php_stream_flush((stream), 0) argument
351 #define php_stream_sync(stream, d) _php_stream_sync((stream), (d)) argument
526 #define php_stream_is(stream, anops) ((stream)->ops == anops) argument
[all …]
/php-src/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()
304 if (stream) { in php_ftp_fopen_connect()
457 if (!stream) { in php_stream_url_wrap_ftp()
589 if (stream) { in php_stream_url_wrap_ftp()
695 if (!stream) { in php_stream_ftp_opendir()
761 if (stream) { in php_stream_ftp_opendir()
887 if (stream) { in php_stream_ftp_url_stat()
936 if (stream) { in php_stream_ftp_unlink()
1014 if (stream) { in php_stream_ftp_rename()
1106 if (stream) { in php_stream_ftp_mkdir()
[all …]
H A Dstreamsfuncs.c330 php_stream *stream; in PHP_FUNCTION() local
361 php_stream *stream; in PHP_FUNCTION() local
393 php_stream *stream; in PHP_FUNCTION() local
443 php_stream *stream; in PHP_FUNCTION() local
536 php_stream *stream; in PHP_FUNCTION() local
627 php_stream *stream; in stream_array_to_fd_set() local
667 php_stream *stream; in stream_array_from_fd_set() local
732 if ((stream->writepos - stream->readpos) > 0) { in stream_array_emulate_read_fd_set()
977 if (stream) { in decode_context_param()
1263 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-src/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-src/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-src/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-src/ext/bz2/
H A Dbz2.c62 php_stream *stream; member
81 stream->eof = 1; in php_bz2iop_read()
134 if (self->stream) { in php_bz2iop_close()
223 if (stream) { in _php_stream_bz2open()
247 if (stream) { in _php_stream_bz2open()
248 php_stream_close(stream); in _php_stream_bz2open()
308 php_stream *stream; in PHP_FUNCTION() local
373 … else if (stream_mode_len == 1 && stream->mode[0] != 'r' && stream->mode[0] != 'w' && stream->mode… in PHP_FUNCTION()
404 stream = php_stream_bz2open_from_BZFILE(bz, mode, stream); in PHP_FUNCTION()
410 if (stream) { in PHP_FUNCTION()
[all …]
/php-src/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-src/ext/pdo_sqlite/tests/subclasses/
H A Dpdosqlite_004_blobopen.phpt2 Pdo\Sqlite::blobOpen stream test
27 var_dump($stream);
31 var_dump(fwrite($stream, 'ABCD'));
33 var_dump(fclose($stream));
36 var_dump($stream);
40 fseek($stream, 0);
45 var_dump(fclose($stream));
56 resource(%d) of type (stream)
59 Writing to read-only stream
65 Opening stream in write mode
[all …]
/php-src/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-src/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-src/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 …]

Completed in 68 milliseconds

12345678910>>...34