Home
last modified time | relevance | path

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

12345678910>>...33

/PHP-7.4/ext/standard/tests/image/
H A Dimage_type_to_mime_type_variation2.phpt46 string(24) "application/octet-stream"
52 string(24) "application/octet-stream"
55 string(24) "application/octet-stream"
64 string(24) "application/octet-stream"
67 string(24) "application/octet-stream"
70 string(24) "application/octet-stream"
76 string(24) "application/octet-stream"
79 string(24) "application/octet-stream"
/PHP-7.4/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 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)));
H A Dbug75776.phpt15 $stream = fopen(__DIR__ . "/75776.$ext", 'w');
16 stream_filter_append($stream, $filter);
17 fwrite($stream,"sdfgdfg");
18 fflush($stream);
19 fclose($stream);
H A Dbug53427.phpt18 resource(%d) of type (stream)
20 resource(%d) of type (stream)
24 resource(%d) of type (stream)
26 resource(%d) of type (stream)
/PHP-7.4/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 Dstream_supports_lock.phpt34 resource(%d) of type (stream)
36 resource(%d) of type (stream)
38 resource(%d) of type (stream)
40 resource(%d) of type (stream)
42 resource(%d) of type (stream-context)
44 Warning: stream_supports_lock(): supplied resource is not a valid stream resource in %s on line %d
H A Dbug52820.phpt2 Bug #52820 (writes to fopencookie FILE* not committed when seeking the stream)
29 echo "temp stream (close after):\n";
32 echo "\nmemory stream (close after):\n";
35 echo "\ntemp stream (leak):\n";
38 echo "\nmemory stream (leak):\n";
43 temp stream (close after):
48 memory stream (close after):
53 temp stream (leak):
58 memory stream (leak):
H A Dphp_fd_wrapper_03.phpt14 Warning: fopen(php://fd): failed to open stream: operation failed in %s on line 2
16 Warning: fopen(php://fd/): failed to open stream: php://fd/ stream must be specified in the form ph…
18 Warning: fopen(php://fd/-2): failed to open stream: The file descriptors must be non-negative numbe…
20 Warning: fopen(php://fd/1/): failed to open stream: php://fd/ stream must be specified in the form …
/PHP-7.4/ext/bz2/tests/
H A D002.phpt77 resource(%d) of type (stream)
78 resource(%d) of type (stream)
79 resource(%d) of type (stream)
83 resource(%d) of type (stream)
84 resource(%d) of type (stream)
102 Warning: bzopen(): cannot use stream opened in mode 'rw' in %s on line %d
105 Warning: bzopen(): cannot use stream opened in mode 'rw' in %s on line %d
108 Warning: bzopen(): cannot use stream opened in mode 'wr' 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 'r+' in %s on line %d
[all …]
/PHP-7.4/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-7.4/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-7.4/ext/gd/
H A Dgd_ctx.c47 php_stream * stream = (php_stream *)ctx->data; in _php_image_stream_putc() local
48 php_stream_write(stream, &ch, 1); in _php_image_stream_putc()
53 php_stream * stream = (php_stream *)ctx->data; in _php_image_stream_putbuf() local
54 return php_stream_write(stream, (void *)buf, l); in _php_image_stream_putbuf()
93 php_stream *stream; in _php_image_output_ctx() local
135 php_stream_from_zval_no_verify(stream, to_zval); in _php_image_output_ctx()
136 if (stream == NULL) { in _php_image_output_ctx()
147 if (stream == NULL) { in _php_image_output_ctx()
155 stream = php_stream_open_wrapper(file, "wb", REPORT_ERRORS|IGNORE_PATH|IGNORE_URL_WIN, NULL); in _php_image_output_ctx()
156 if (stream == NULL) { in _php_image_output_ctx()
[all …]
/PHP-7.4/ext/zlib/tests/
H A Dbug48725_2.phpt2 Bug #48725 (Support for flushing in zlib stream)
9 $stream = fopen('data://text/plain;base64,' . base64_encode('Foo bar baz'),
11 stream_filter_append($stream, 'zlib.deflate', STREAM_FILTER_READ);
12 print bin2hex(stream_get_contents($stream));
/PHP-7.4/ext/standard/
H A Dhttp_fopen_wrapper.c230 if (stream) { in php_stream_url_wrap_http_ex()
320 stream = NULL; in php_stream_url_wrap_http_ex()
324 if (stream) { in php_stream_url_wrap_http_ex()
338 if (stream) { in php_stream_url_wrap_http_ex()
343 stream = NULL; in php_stream_url_wrap_http_ex()
727 stream = NULL; in php_stream_url_wrap_http_ex()
837 stream = NULL; in php_stream_url_wrap_http_ex()
932 if (stream) { in php_stream_url_wrap_http_ex()
950 strlcpy(stream->mode, mode, sizeof(stream->mode)); in php_stream_url_wrap_http_ex()
961 return stream; in php_stream_url_wrap_http_ex()
[all …]
/PHP-7.4/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 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");
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));
/PHP-7.4/main/streams/
H A Dglob_wrapper.c48 PHPAPI char* _php_glob_stream_get_path(php_stream *stream, size_t *plen STREAMS_DC) /* {{{ */ in _php_glob_stream_get_path() argument
50 glob_s_t *pglob = (glob_s_t *)stream->abstract; in _php_glob_stream_get_path()
68 glob_s_t *pglob = (glob_s_t *)stream->abstract; in _php_glob_stream_get_pattern()
84 PHPAPI int _php_glob_stream_get_count(php_stream *stream, int *pflags STREAMS_DC) /* {{{ */ in _php_glob_stream_get_count() argument
86 glob_s_t *pglob = (glob_s_t *)stream->abstract; in _php_glob_stream_get_count()
130 static ssize_t php_glob_stream_read(php_stream *stream, char *buf, size_t count) /* {{{ */ in php_glob_stream_read() argument
132 glob_s_t *pglob = (glob_s_t *)stream->abstract; in php_glob_stream_read()
154 static int php_glob_stream_close(php_stream *stream, int close_handle) /* {{{ */ in php_glob_stream_close() argument
156 glob_s_t *pglob = (glob_s_t *)stream->abstract; in php_glob_stream_close()
168 efree(stream->abstract); in php_glob_stream_close()
[all …]
H A Dphp_stream_transport.h60 PHPAPI int php_stream_xport_bind(php_stream *stream,
66 PHPAPI int php_stream_xport_connect(php_stream *stream,
75 PHPAPI int php_stream_xport_listen(php_stream *stream,
82 PHPAPI int php_stream_xport_accept(php_stream *stream, php_stream **client,
90 PHPAPI int php_stream_xport_get_name(php_stream *stream, int want_peer,
102 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen,
108 PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen,
119 PHPAPI int php_stream_xport_shutdown(php_stream *stream, stream_shutdown_t how);
196 PHPAPI int php_stream_xport_crypto_setup(php_stream *stream, php_stream_xport_crypt_method_t crypto…
197 PHPAPI int php_stream_xport_crypto_enable(php_stream *stream, int activate);
/PHP-7.4/ext/sockets/tests/
H A Dsocket_export_stream-1.phpt17 $stream = socket_export_stream($s0);
18 var_dump($stream);
23 var_dump(stream_get_contents($stream));
25 resource(%d) of type (stream)
/PHP-7.4/tests/output/
H A Dsapi_windows_vt100_support_winko_err.phpt79 Not a stream:
95 Invalid stream (php://temp):
97 Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
100 Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
103 Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
106 Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
109 Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
111 Invalid stream (php://input):
113 Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
127 Invalid stream (php://memory):
[all …]
H A Dsapi_windows_vt100_support_winko_in-err.phpt79 Not a stream:
95 Invalid stream (php://temp):
97 Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
100 Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
103 Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
106 Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
109 Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
111 Invalid stream (php://input):
113 Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
127 Invalid stream (php://memory):
[all …]
H A Dsapi_windows_vt100_support_winko_in-out-err.phpt79 Not a stream:
95 Invalid stream (php://temp):
97 Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
100 Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
103 Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
106 Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
109 Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
111 Invalid stream (php://input):
113 Warning: sapi_windows_vt100_support() was not able to analyze the specified stream in %s on line %d
127 Invalid stream (php://memory):
[all …]

Completed in 51 milliseconds

12345678910>>...33