Home
last modified time | relevance | path

Searched refs:stream (Results 51 – 75 of 779) sorted by relevance

12345678910>>...32

/PHP-8.1/ext/standard/tests/file/
H A Dinclude_userstream_003.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 …]
H A Dbug68532.phpt6 $stream = fopen('php://memory','r+');
7 fwrite($stream, $testString);
8 rewind($stream);
9 $filter = stream_filter_append($stream, 'convert.base64-encode');
10 echo "memoryStream = " . stream_get_contents($stream).PHP_EOL;
H A Dfputcsv_variation17.phpt13 $stream = fopen('php://memory', 'w+');
15 fputcsv($stream, $record, ',', '"', '\\', $eol_char);
17 rewind($stream);
18 echo stream_get_contents($stream), "\n";
19 fclose($stream);
H A Dstream_supports_lock.phpt38 resource(%d) of type (stream)
40 resource(%d) of type (stream)
42 resource(%d) of type (stream)
44 resource(%d) of type (stream)
46 resource(%d) of type (stream-context)
47 stream_supports_lock(): supplied resource is not a valid stream resource
H A Dbug52820.phpt2 Bug #52820 (writes to fopencookie FILE* not committed when seeking the stream)
31 echo "temp stream (close after):\n";
34 echo "\nmemory stream (close after):\n";
37 echo "\ntemp stream (leak):\n";
40 echo "\nmemory stream (leak):\n";
46 temp stream \(close after\):
51 memory stream \(close after\):
56 temp stream \(leak\):
61 memory stream \(leak\):
H A Dphp_fd_wrapper_03.phpt15 Warning: fopen(php://fd): Failed to open stream: operation failed in %s on line 2
17 Warning: fopen(php://fd/): Failed to open stream: php://fd/ stream must be specified in the form ph…
19 Warning: fopen(php://fd/-2): Failed to open stream: The file descriptors must be non-negative numbe…
21 Warning: fopen(php://fd/1/): Failed to open stream: php://fd/ stream must be specified in the form …
/PHP-8.1/ext/standard/tests/streams/
H A Dbug77069.phpt2 Bug #77069 (stream filter loses final block of data)
21 $bucket_out = stream_bucket_new($this->stream, $data);
30 $bucket_out = stream_bucket_new($this->stream, $data);
43 $stream = fopen('data://text/plain,' . $input, 'r');
44 stream_filter_append($stream, 'my-filter');
47 while (!feof($stream)) {
48 $output .= fread($stream, 16);
50 fclose($stream);
H A Dbug75776.phpt13 $stream = fopen(__DIR__ . "/75776.$ext", 'w');
14 stream_filter_append($stream, $filter);
15 fwrite($stream,"sdfgdfg");
16 fflush($stream);
17 fclose($stream);
H A Dbug81659.phpt5 $stream = fopen(__DIR__ . "/81659.txt", "w+");
8 fwrite($stream, str_repeat("*", 1024));
11 fseek($stream, 1023 * 1024);
14 var_dump(strlen(stream_get_contents($stream)));
/PHP-8.1/ext/bz2/tests/
H A D002.phpt84 resource(%d) of type (stream)
85 resource(%d) of type (stream)
86 resource(%d) of type (stream)
90 resource(%d) of type (stream)
91 resource(%d) of type (stream)
105 Warning: bzopen(): Cannot use stream opened in mode 'rw' in %s on line %d
108 Warning: bzopen(): Cannot use stream opened in mode 'rw' in %s on line %d
111 Warning: bzopen(): Cannot use stream opened in mode 'wr' in %s on line %d
114 Warning: bzopen(): Cannot use stream opened in mode 'wr' in %s on line %d
117 Warning: bzopen(): Cannot use stream opened in mode 'r+' in %s on line %d
[all …]
/PHP-8.1/docs/
H A Dstreams.md63 arrange for the stream to be copied (if needed) into a stream that can be
76 /* Convert a FILE * into a stream. */
90 /* Convert a socket into a stream. */
208 if you mix ANSI stdio calls on the FILE* with php stream calls on the stream.
239 `stream_is` tells you if the stream is a particular type of stream, whereas
242 stream.
284 A socket based stream would use code similar to that above to create a stream to
296 instance of the stream,
298 stream
349 /* now allocate the stream itself */
[all …]
/PHP-8.1/ext/standard/
H A Dhttp_fopen_wrapper.c226 if (stream) { in php_stream_url_wrap_http_ex()
316 stream = NULL; in php_stream_url_wrap_http_ex()
320 if (stream) { in php_stream_url_wrap_http_ex()
334 if (stream) { in php_stream_url_wrap_http_ex()
339 stream = NULL; in php_stream_url_wrap_http_ex()
837 stream = NULL; in php_stream_url_wrap_http_ex()
944 if (stream) { in php_stream_url_wrap_http_ex()
962 strlcpy(stream->mode, mode, sizeof(stream->mode)); in php_stream_url_wrap_http_ex()
971 if (stream->writepos > stream->readpos) { in php_stream_url_wrap_http_ex()
976 return stream; in php_stream_url_wrap_http_ex()
[all …]
H A Dbasic_functions.stub.php1017 * @param resource $stream
1058 * @param resource $stream
1064 * @param resource $stream
1077 * @param resource $stream
1090 * @param resource $stream
1115 * @param resource $stream
1161 * @param resource $stream
1613 * @param resource $stream
1619 * @param resource $stream
1667 * @param resource $stream
[all …]
/PHP-8.1/ext/phar/
H A Ddirstream.h28 static ssize_t phar_dir_write(php_stream *stream, const char *buf, size_t count);
29 static ssize_t phar_dir_read( php_stream *stream, char *buf, size_t count);
30 static int phar_dir_close(php_stream *stream, int close_handle);
31 static int phar_dir_flush(php_stream *stream);
32 static int phar_dir_seek( php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs…
/PHP-8.1/ext/com_dotnet/
H A Dcom_persist.stub.php19 /** @param resource $stream */
20 public function LoadFromStream($stream): bool {} argument
22 /** @param resource $stream */
23 public function SaveToStream($stream): bool {} argument
/PHP-8.1/ext/zlib/tests/
H A Dbug48725_2.phpt2 Bug #48725 (Support for flushing in zlib stream)
7 $stream = fopen('data://text/plain;base64,' . base64_encode('Foo bar baz'),
9 stream_filter_append($stream, 'zlib.deflate', STREAM_FILTER_READ);
10 print bin2hex(stream_get_contents($stream));
/PHP-8.1/sapi/fuzzer/
H A Dfuzzer-exif.c35 php_stream *stream; in LLVMFuzzerTestOneInput() local
48 stream = php_stream_memory_create(TEMP_STREAM_DEFAULT); in LLVMFuzzerTestOneInput()
49 php_stream_write(stream, (const char *) Data, Size); in LLVMFuzzerTestOneInput()
50 php_stream_to_zval(stream, &stream_zv); in LLVMFuzzerTestOneInput()
/PHP-8.1/tests/output/
H A Dstream_isatty.inc15 'Invalid stream (php://temp)' => fopen('php://temp', 'wb'),
16 'Invalid stream (php://input)' => fopen('php://input', 'wb'),
17 'Invalid stream (php://memory)' => fopen('php://memory', 'wb'),
18 'File stream' => $closeMe = fopen(__FILE__, 'rb'),
21 foreach ($sampleStreams as $name => $stream) {
22 echo "$name: "; var_dump(stream_isatty($stream));
/PHP-8.1/main/streams/
H A Dplain_wrapper.c230 if (stream) { in _php_stream_fopen_temporary_file()
238 return stream; in _php_stream_fopen_temporary_file()
281 if (stream) { in _php_stream_fopen_from_fd()
300 return stream; in _php_stream_fopen_from_fd()
307 if (stream) { in _php_stream_fopen_from_file()
319 return stream; in _php_stream_fopen_from_file()
342 return stream; in _php_stream_fopen_from_pipe()
449 stream->eof = 1; in php_stdiop_read()
1088 return stream; in php_plain_files_dir_opener()
1706 if (stream) { in _php_stream_fopen_with_path()
[all …]
H A Dglob_wrapper.c46 PHPAPI char* _php_glob_stream_get_path(php_stream *stream, size_t *plen STREAMS_DC) /* {{{ */ in _php_glob_stream_get_path() argument
48 glob_s_t *pglob = (glob_s_t *)stream->abstract; in _php_glob_stream_get_path()
66 glob_s_t *pglob = (glob_s_t *)stream->abstract; in _php_glob_stream_get_pattern()
82 PHPAPI int _php_glob_stream_get_count(php_stream *stream, int *pflags STREAMS_DC) /* {{{ */ in _php_glob_stream_get_count() argument
84 glob_s_t *pglob = (glob_s_t *)stream->abstract; in _php_glob_stream_get_count()
128 static ssize_t php_glob_stream_read(php_stream *stream, char *buf, size_t count) /* {{{ */ in php_glob_stream_read() argument
130 glob_s_t *pglob = (glob_s_t *)stream->abstract; in php_glob_stream_read()
152 static int php_glob_stream_close(php_stream *stream, int close_handle) /* {{{ */ in php_glob_stream_close() argument
154 glob_s_t *pglob = (glob_s_t *)stream->abstract; in php_glob_stream_close()
166 efree(stream->abstract); in php_glob_stream_close()
[all …]
H A Dphp_stream_transport.h58 PHPAPI int php_stream_xport_bind(php_stream *stream,
64 PHPAPI int php_stream_xport_connect(php_stream *stream,
73 PHPAPI int php_stream_xport_listen(php_stream *stream,
80 PHPAPI int php_stream_xport_accept(php_stream *stream, php_stream **client,
88 PHPAPI int php_stream_xport_get_name(php_stream *stream, int want_peer,
100 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen,
106 PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen,
117 PHPAPI int php_stream_xport_shutdown(php_stream *stream, stream_shutdown_t how);
194 PHPAPI int php_stream_xport_crypto_setup(php_stream *stream, php_stream_xport_crypt_method_t crypto…
195 PHPAPI int php_stream_xport_crypto_enable(php_stream *stream, int activate);
/PHP-8.1/ext/standard/tests/filters/
H A Dbasic.phpt2 basic stream filter tests
31 resource(%d) of type (stream filter)
34 resource(%d) of type (stream filter)
37 resource(%d) of type (stream filter)
40 resource(%d) of type (stream filter)
42 resource(%d) of type (stream filter)
H A Dbug72941.phpt28 $stream = fopen('php://memory', 'w+');
29 fwrite($stream, 'hello, world');
30 rewind($stream);
31 stream_filter_append($stream, "rotator_notWorking");
32 var_dump(stream_get_contents($stream));
H A Dbug73586.phpt2 Bug #73586 (php_user_filter::$stream is not set to the stream the filter is working on).
6 public $stream;
13 $bucket = stream_bucket_new($this->stream, "FooBar\n");
27 public $stream;
34 $bucket = stream_bucket_new($this->stream, "FooBar\n");
/PHP-8.1/ext/sockets/tests/
H A Dsocket_export_stream-1.phpt14 $stream = socket_export_stream($s0);
15 var_dump($stream);
20 var_dump(stream_get_contents($stream));
23 resource(%d) of type (stream)

Completed in 97 milliseconds

12345678910>>...32