Home
last modified time | relevance | path

Searched refs:stream (Results 26 – 50 of 779) sorted by relevance

12345678910>>...32

/PHP-8.1/ext/zip/
H A Dzip_stream.c38 php_stream *stream; member
57 stream->eof = 1; in php_zip_ops_read()
62 stream->eof = 1; in php_zip_ops_read()
71 stream->eof = 1; in php_zip_ops_read()
83 if (!stream) { in php_zip_ops_write()
115 if (!stream) { in php_zip_ops_flush()
229 self->stream = NULL; in php_stream_zip_open()
236 return stream; in php_stream_zip_open()
308 self->stream = NULL; in php_stream_zip_opener()
322 if (!stream) { in php_stream_zip_opener()
[all …]
/PHP-8.1/main/streams/
H A Dxp_socket.c176 stream->eof = 1; in php_sockop_read()
179 stream->eof = 1; in php_sockop_read()
660 if (PHP_STREAM_CONTEXT(stream) in php_tcp_sockop_bind()
670 if (PHP_STREAM_CONTEXT(stream) in php_tcp_sockop_bind()
680 && PHP_STREAM_CONTEXT(stream) in php_tcp_sockop_bind()
852 if (stream->ctx) { in php_tcp_sockop_accept()
853 GC_ADDREF(stream->ctx); in php_tcp_sockop_accept()
899 php_stream *stream = NULL; in php_stream_generic_socket_factory() local
934 if (stream == NULL) { in php_stream_generic_socket_factory()
940 return stream; in php_stream_generic_socket_factory()
[all …]
H A Dmmap.c21 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mm… in _php_stream_mmap_range() argument
30 …if (PHP_STREAM_OPTION_RETURN_OK == php_stream_set_option(stream, PHP_STREAM_OPTION_MMAP_API, PHP_S… in _php_stream_mmap_range()
39 PHPAPI int _php_stream_mmap_unmap(php_stream *stream) in _php_stream_mmap_unmap() argument
41 …return php_stream_set_option(stream, PHP_STREAM_OPTION_MMAP_API, PHP_STREAM_MMAP_UNMAP, NULL) == P… in _php_stream_mmap_unmap()
44 PHPAPI int _php_stream_mmap_unmap_ex(php_stream *stream, zend_off_t readden) in _php_stream_mmap_unmap_ex() argument
48 if (php_stream_seek(stream, readden, SEEK_CUR) != 0) { in _php_stream_mmap_unmap_ex()
51 if (php_stream_mmap_unmap(stream) == 0) { in _php_stream_mmap_unmap_ex()
/PHP-8.1/ext/sodium/tests/
H A Dcrypto_stream.phpt2 Check for libsodium stream
11 $stream = sodium_crypto_stream($len, $nonce, $key);
12 var_dump(strlen($stream));
22 var_dump($stream === $stream2);
23 var_dump($stream !== $stream3);
24 var_dump($stream !== $stream4);
29 $stream5 = sodium_crypto_stream_xor($stream, $nonce, $key);
30 var_dump($stream5 !== $stream);
33 var_dump($stream6 === $stream);
H A Dcrypto_stream_xchacha20.phpt2 Check for libsodium stream
13 $stream = sodium_crypto_stream_xchacha20($len, $nonce, $key);
14 var_dump(strlen($stream));
24 var_dump($stream === $stream2);
25 var_dump($stream !== $stream3);
26 var_dump($stream !== $stream4);
31 $stream5 = sodium_crypto_stream_xchacha20_xor($stream, $nonce, $key);
32 var_dump($stream5 !== $stream);
35 var_dump($stream6 === $stream);
53 sodium_crypto_stream_xchacha20_xor($stream, substr($nonce, 1), $key);
[all …]
/PHP-8.1/ext/standard/tests/file/
H A Duserstreams_002.phpt38 test("valid stream", $fd, STDIN);
41 test("return value not a stream resource", $fd, "foo");
42 test("return value is stream itself", $fd, $fd);
50 ------ valid stream: -------
58 No stream arrays were passed
63 No stream arrays were passed
65 ------ return value not a stream resource: -------
70 No stream arrays were passed
72 ------ return value is stream itself: -------
77 No stream arrays were passed
[all …]
H A Dfputcsv_variation16.phpt9 $stream = fopen('php://memory', 'w+');
11 fputcsv($stream, $record, ',', '"', '');
13 rewind($stream);
14 echo stream_get_contents($stream);
15 fclose($stream);
H A Dfgetcsv_variation32.phpt10 $stream = fopen('php://memory', 'w+');
11 fwrite($stream, $contents);
12 rewind($stream);
13 while (($data = fgetcsv($stream, 0, ',', '"', '')) !== false) {
16 fclose($stream);
H A Dftruncate_bug77081.phpt9 $stream = fopen($filename, 'c');
10 ftruncate($stream, 0);
11 var_dump(ftell($stream));
12 fwrite($stream, 'bar');
13 fclose($stream);
H A Dinclude_userstream_002.phpt11 private $stream = null;
16 $this->stream = fopen("test1://".substr($path, 8), $mode);
17 return !empty($this->stream);
29 if (!empty($this->stream)) {
30 return fread($this->stream, $count);
39 if (!empty($this->stream)) {
40 return ftell($this->stream);
47 if (!empty($this->stream)) {
48 return feof($this->stream);
55 if (!empty($this->stream)) {
[all …]
/PHP-8.1/ext/standard/tests/dir/
H A Dscandir_variation8.phpt72 resource(%d) of type (stream)
75 resource(%d) of type (stream)
78 resource(%d) of type (stream)
81 resource(%d) of type (stream)
84 resource(%d) of type (stream)
87 resource(%d) of type (stream)
90 resource(%d) of type (stream)
93 resource(%d) of type (stream)
96 resource(%d) of type (stream)
99 resource(%d) of type (stream)
[all …]
H A Dscandir_variation8-win32-mb.phpt78 resource(%d) of type (stream)
81 resource(%d) of type (stream)
84 resource(%d) of type (stream)
87 resource(%d) of type (stream)
90 resource(%d) of type (stream)
93 resource(%d) of type (stream)
96 resource(%d) of type (stream)
99 resource(%d) of type (stream)
102 resource(%d) of type (stream)
105 resource(%d) of type (stream)
[all …]
H A Dreaddir_variation4.phpt82 resource(%d) of type (stream)
86 resource(%d) of type (stream)
90 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)
110 resource(%d) of type (stream)
114 resource(%d) of type (stream)
118 resource(%d) of type (stream)
[all …]
H A Dreaddir_variation4-win32-mb.phpt88 resource(%d) of type (stream)
92 resource(%d) of type (stream)
96 resource(%d) of type (stream)
100 resource(%d) of type (stream)
104 resource(%d) of type (stream)
108 resource(%d) of type (stream)
112 resource(%d) of type (stream)
116 resource(%d) of type (stream)
120 resource(%d) of type (stream)
124 resource(%d) of type (stream)
[all …]
/PHP-8.1/ext/phar/tests/
H A Dbug70091.phpt13 $stream = fopen(__DIR__ . '/bug70091.zip', 'r');
15 $data = fread($stream, 8);
18 fseek($stream, 53);
19 $data = fread($stream, 8);
22 fseek($stream, 104);
23 $data = fread($stream, 10);
26 fseek($stream, 173);
27 $data = fread($stream, 10);
/PHP-8.1/ext/standard/
H A Dfile.c367 php_stream *stream; in PHP_FUNCTION() local
411 if (!md.stream) { in PHP_FUNCTION()
535 php_stream *stream; in PHP_FUNCTION() local
565 if (!stream) { in PHP_FUNCTION()
588 php_stream *stream; in PHP_FUNCTION() local
739 php_stream *stream; in PHP_FUNCTION() local
764 if (!stream) { in PHP_FUNCTION()
854 php_stream *stream; in PHP_FUNCTION() local
860 if (stream) { in PHP_FUNCTION()
1343 if (stream) { in PHP_FUNCTION()
[all …]
/PHP-8.1/tests/output/
H A Dsapi_windows_vt100_support.inc38 'Invalid stream (php://temp)' => fopen('php://temp', 'wb'),
39 'Invalid stream (php://input)' => fopen('php://input', 'wb'),
40 'Invalid stream (php://memory)' => fopen('php://memory', 'wb'),
41 'File stream' => $closeMe = fopen(__FILE__, 'rb'),
44 foreach ($sampleStreams as $name => $stream) {
46 echo "- current value : "; var_dump(sapi_windows_vt100_support($stream));
47 echo "- enabling VT100 : "; var_dump(sapi_windows_vt100_support($stream, true));
48 echo "- current value : "; var_dump(sapi_windows_vt100_support($stream));
49 echo "- disabling VT100: "; var_dump(sapi_windows_vt100_support($stream, false));
50 echo "- current value : "; var_dump(sapi_windows_vt100_support($stream));
/PHP-8.1/ext/openssl/
H A Dxp_ssl.c201 stream->wrapper && in php_openssl_is_http_stream_talking_to_iis()
250 stream->eof = 1; in php_openssl_handle_ssl_error()
309 php_stream *stream; in verify_callback() local
670 php_stream *stream; in php_openssl_win_cert_verify_callback() local
793 php_stream *stream; in php_openssl_load_stream_cafile() local
803 if (stream == NULL) { in php_openssl_load_stream_cafile()
1106 php_stream *stream; in php_openssl_limit_handshake_reneg() local
1374 php_stream *stream; in php_openssl_server_sni_callback() local
2568 if (stream->writepos == stream->readpos in php_openssl_sockop_cast()
2571 php_stream_fill_read_buffer(stream, pending < stream->chunk_size in php_openssl_sockop_cast()
[all …]
/PHP-8.1/ext/standard/tests/image/
H A Dimage_type_to_mime_type_variation2.phpt40 string(24) "application/octet-stream"
46 string(24) "application/octet-stream"
49 string(24) "application/octet-stream"
58 string(24) "application/octet-stream"
61 string(24) "application/octet-stream"
64 string(24) "application/octet-stream"
70 string(24) "application/octet-stream"
73 string(24) "application/octet-stream"
/PHP-8.1/Zend/
H A Dzend_stream.c57 if (file_handle->handle.stream.isatty) { in zend_stream_fsize()
60 return file_handle->handle.stream.fsizer(file_handle->handle.stream.handle); in zend_stream_fsize()
103 if (file_handle->handle.stream.reader(file_handle->handle.stream.handle, &buf, sizeof(buf))) { in zend_stream_getc()
111 if (file_handle->handle.stream.isatty) { in zend_stream_read()
124 return file_handle->handle.stream.reader(file_handle->handle.stream.handle, buf, len); in zend_stream_read()
149 file_handle->handle.stream.handle = file_handle->handle.fp; in zend_stream_fixup()
150 file_handle->handle.stream.isatty = isatty(fileno((FILE *)file_handle->handle.stream.handle)); in zend_stream_fixup()
223 if (fh->handle.stream.closer && fh->handle.stream.handle) { in zend_file_handle_dtor()
224 fh->handle.stream.closer(fh->handle.stream.handle); in zend_file_handle_dtor()
226 fh->handle.stream.handle = NULL; in zend_file_handle_dtor()
[all …]
/PHP-8.1/sapi/phpdbg/tests/
H A Dphpdbg_get_executable_stream_wrapper.phpt20 * of stream wrappers.
24 * First, we define a stream wrapper that simply maps to a real file on disk.
40 $stream = \fopen($path, $mode);
42 if ($stream === false) {
46 $this->stream = $stream;
58 public function stream_read(int $count) : string { return \fread($this->stream, $count); }
59 public function stream_close() : bool { return \fclose($this->stream); }
60 public function stream_eof() : bool { return \feof($this->stream); }
61 public function stream_stat() { return \fstat($this->stream); }
64 private $stream = false;
[all …]
/PHP-8.1/ext/gd/tests/
H A Dbug73549.phpt2 Bug #73549 (Use after free when stream is passed to imagepng)
7 $stream = fopen(__DIR__ . DIRECTORY_SEPARATOR . 'bug73549.png', 'w');
9 var_dump(imagepng($im, $stream));
10 var_dump($stream);
14 resource(%d) of type (stream)
/PHP-8.1/ext/bz2/tests/
H A Dbug81092.phpt2 Bug #81092 (fflush before stream_filter_remove corrupts stream)
7 $stream = fopen(__DIR__ . "/81092.bz2", 'wb+');
8 $filter = stream_filter_append($stream, 'bzip2.compress', STREAM_FILTER_WRITE, ['blocks' => 9, 'wor…
9 fwrite($stream, random_bytes(8192));
10 fflush($stream);
/PHP-8.1/ext/standard/tests/streams/
H A Dstream_select_preserve_keys.phpt20 resource(%d) of type (stream)
22 resource(%d) of type (stream)
26 resource(%d) of type (stream)
28 resource(%d) of type (stream)
32 resource(%d) of type (stream)
34 resource(%d) of type (stream)
/PHP-8.1/ext/phar/
H A Dstream.h31 static ssize_t phar_stream_write(php_stream *stream, const char *buf, size_t count);
32 static ssize_t phar_stream_read( php_stream *stream, char *buf, size_t count);
33 static int phar_stream_close(php_stream *stream, int close_handle);
34 static int phar_stream_flush(php_stream *stream);
35 static int phar_stream_seek( php_stream *stream, zend_off_t offset, int whence, zend_off_t *newo…
36 static int phar_stream_stat( php_stream *stream, php_stream_statbuf *ssb);

Completed in 65 milliseconds

12345678910>>...32