Home
last modified time | relevance | path

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

12345678910>>...27

/PHP-5.5/ext/standard/tests/file/
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 …]
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 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 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 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-5.5/ext/standard/tests/dir/
H A Dreaddir_variation4.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-5.5/ext/standard/
H A Dfile.c336 php_stream *stream; in PHP_FUNCTION() local
395 if (!md.stream) { in PHP_FUNCTION()
521 php_stream *stream; in PHP_FUNCTION() local
543 if (!stream) { in PHP_FUNCTION()
573 php_stream *stream; in PHP_FUNCTION() local
728 php_stream *stream; in PHP_FUNCTION() local
748 if (!stream) { in PHP_FUNCTION()
844 php_stream *stream; in PHP_NAMED_FUNCTION() local
852 if (stream) { in PHP_NAMED_FUNCTION()
1375 if (stream) { in PHP_FUNCTION()
[all …]
H A Dhttp_fopen_wrapper.c211 if (stream) { in php_stream_url_wrap_http_ex()
297 stream = NULL; in php_stream_url_wrap_http_ex()
301 if (stream) { in php_stream_url_wrap_http_ex()
315 if (stream) { in php_stream_url_wrap_http_ex()
320 stream = NULL; in php_stream_url_wrap_http_ex()
325 if (stream == NULL) in php_stream_url_wrap_http_ex()
802 stream = NULL; in php_stream_url_wrap_http_ex()
898 if (stream) { in php_stream_url_wrap_http_ex()
917 stream->position = 0; in php_stream_url_wrap_http_ex()
920 strlcpy(stream->mode, mode, sizeof(stream->mode)); in php_stream_url_wrap_http_ex()
[all …]
/PHP-5.5/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-5.5/
H A DREADME.STREAMS77 Convert a FILE * into a stream.
89 Convert a socket into a stream.
172 php_stream * stream; /* already opened */
193 if you mix ANSI stdio calls on the FILE* with php stream calls on the stream.
219 stream_is tells you if the stream is a particular type of stream, whereas
222 state in the stream.
263 A socket based stream would use code similar to that above to create a stream
273 of the stream,
287 Writing your own stream implementation
327 /* now allocate the stream itself */
[all …]
/PHP-5.5/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"
H A Dimage_type_to_mime_type_variation1.phpt80 string(24) "application/octet-stream"
83 string(24) "application/octet-stream"
86 string(24) "application/octet-stream"
89 string(24) "application/octet-stream"
92 string(24) "application/octet-stream"
105 string(24) "application/octet-stream"
108 string(24) "application/octet-stream"
114 string(24) "application/octet-stream"
120 string(24) "application/octet-stream"
148 string(24) "application/octet-stream"
[all …]
/PHP-5.5/ext/phar/
H A Dstream.h33 static size_t phar_stream_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC);
34 static size_t phar_stream_read( php_stream *stream, char *buf, size_t count TSRMLS_DC);
35 static int phar_stream_close(php_stream *stream, int close_handle TSRMLS_DC);
36 static int phar_stream_flush(php_stream *stream TSRMLS_DC);
37 static int phar_stream_seek( php_stream *stream, off_t offset, int whence, off_t *newoffset TSRM…
38 static int phar_stream_stat( php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
H A Ddirstream.h30 static size_t phar_dir_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC);
31 static size_t phar_dir_read( php_stream *stream, char *buf, size_t count TSRMLS_DC);
32 static int phar_dir_close(php_stream *stream, int close_handle TSRMLS_DC);
33 static int phar_dir_flush(php_stream *stream TSRMLS_DC);
34 static int phar_dir_seek( php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_…
/PHP-5.5/main/streams/
H A Dplain_wrapper.c193 if (stream) { in _php_stream_fopen_temporary_file()
194 return stream; in _php_stream_fopen_temporary_file()
212 if (stream) { in _php_stream_fopen_tmpfile()
220 return stream; in _php_stream_fopen_tmpfile()
235 if (stream) { in _php_stream_fopen_from_fd()
267 return stream; in _php_stream_fopen_from_fd()
274 if (stream) { in _php_stream_fopen_from_file()
299 return stream; in _php_stream_fopen_from_file()
318 return stream; in _php_stream_fopen_from_pipe()
919 return stream; in php_plain_files_dir_opener()
[all …]
H A Dphp_stream_transport.h61 PHPAPI int php_stream_xport_bind(php_stream *stream,
67 PHPAPI int php_stream_xport_connect(php_stream *stream,
76 PHPAPI int php_stream_xport_listen(php_stream *stream,
83 PHPAPI int php_stream_xport_accept(php_stream *stream, php_stream **client,
91 PHPAPI int php_stream_xport_get_name(php_stream *stream, int want_peer,
103 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen,
109 PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen,
120 PHPAPI int php_stream_xport_shutdown(php_stream *stream, stream_shutdown_t how TSRMLS_DC);
180 PHPAPI int php_stream_xport_crypto_setup(php_stream *stream, php_stream_xport_crypt_method_t crypto…
181 PHPAPI int php_stream_xport_crypto_enable(php_stream *stream, int activate TSRMLS_DC);
H A Dglob_wrapper.c50 PHPAPI char* _php_glob_stream_get_path(php_stream *stream, int copy, int *plen STREAMS_DC TSRMLS_DC… in _php_glob_stream_get_path() argument
52 glob_s_t *pglob = (glob_s_t *)stream->abstract; in _php_glob_stream_get_path()
74 glob_s_t *pglob = (glob_s_t *)stream->abstract; in _php_glob_stream_get_pattern()
94 PHPAPI int _php_glob_stream_get_count(php_stream *stream, int *pflags STREAMS_DC TSRMLS_DC) /* {{{ … in _php_glob_stream_get_count() argument
96 glob_s_t *pglob = (glob_s_t *)stream->abstract; in _php_glob_stream_get_count()
140 static size_t php_glob_stream_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) /* {{{ */ in php_glob_stream_read() argument
142 glob_s_t *pglob = (glob_s_t *)stream->abstract; in php_glob_stream_read()
164 static int php_glob_stream_close(php_stream *stream, int close_handle TSRMLS_DC) /* {{{ */ in php_glob_stream_close() argument
166 glob_s_t *pglob = (glob_s_t *)stream->abstract; in php_glob_stream_close()
178 efree(stream->abstract); in php_glob_stream_close()
[all …]
/PHP-5.5/ext/standard/tests/filters/
H A Dbasic.phpt2 basic stream filter tests
32 resource(%d) of type (stream filter)
35 resource(%d) of type (stream filter)
38 resource(%d) of type (stream filter)
41 resource(%d) of type (stream filter)
43 resource(%d) of type (stream filter)
H A Dfilter_errors_user.phpt55 fwrite($stream, b"42");
56 fseek($stream, 0, SEEK_SET);
58 stream_get_contents($stream);
63 $stream = fopen('php://memory', 'wb+');
64 fwrite($stream, b"42");
65 fseek($stream, 0, SEEK_SET);
71 stream_get_contents($stream);
78 fwrite($stream, b"42");
79 fseek($stream, 0, SEEK_SET);
85 stream_get_contents($stream);
[all …]
/PHP-5.5/ext/gd/
H A Dgd_ctx.c51 php_stream * stream = (php_stream *)ctx->data; in _php_image_stream_putc() local
53 php_stream_write(stream, &ch, 1); in _php_image_stream_putc()
58 php_stream * stream = (php_stream *)ctx->data; in _php_image_stream_putbuf() local
60 return php_stream_write(stream, (void *)buf, l); in _php_image_stream_putbuf()
89 php_stream *stream; in _php_image_output_ctx() local
122 php_stream_from_zval_no_verify(stream, &to_zval); in _php_image_output_ctx()
123 if (stream == NULL) { in _php_image_output_ctx()
132stream = php_stream_open_wrapper(Z_STRVAL_P(to_zval), "wb", REPORT_ERRORS|IGNORE_PATH|IGNORE_URL_W… in _php_image_output_ctx()
133 if (stream == NULL) { in _php_image_output_ctx()
158 ctx->data = (void *)stream; in _php_image_output_ctx()
/PHP-5.5/ext/zlib/tests/
H A Dgzopen_variation2.phpt125 Error: 2 - gzopen(%s/004.txt.gz): failed to open stream: %s, %s(%d)
129 Error: 2 - gzopen(%s/004.txt.gz): failed to open stream: %s, %s(%d)
133 Error: 2 - gzopen(%s/004.txt.gz): failed to open stream: %s, %s(%d)
137 Error: 2 - gzopen(%s/004.txt.gz): failed to open stream: %s, %s(%d)
141 Error: 2 - gzopen(%s/004.txt.gz): failed to open stream: %s, %s(%d)
145 Error: 2 - gzopen(%s/004.txt.gz): failed to open stream: %s, %s(%d)
149 Error: 2 - gzopen(%s/004.txt.gz): failed to open stream: %s, %s(%d)
153 Error: 2 - gzopen(%s/004.txt.gz): failed to open stream: %s, %s(%d)
157 Error: 2 - gzopen(%s/004.txt.gz): failed to open stream: %s, %s(%d)
177 Error: 2 - gzopen(%s/004.txt.gz): failed to open stream: %s, %s(%d)
[all …]
/PHP-5.5/ext/sockets/tests/
H A Dsocket_import_stream-4.phpt14 function test($stream, $sock) {
15 if ($stream !== null) {
17 print_r(stream_set_blocking($stream, 0));
36 echo "\nunset stream\n";
48 echo "\nclose stream\n";
68 unset stream
77 close stream
79 Warning: stream_set_blocking(): %d is not a valid stream resource in %s on line %d
91 Warning: stream_set_blocking(): %d is not a valid stream resource in %s on line %d
/PHP-5.5/tests/security/
H A Dopen_basedir_fopen.phpt43 Warning: fopen(../bad): failed to open stream: %s in %s on line %d
53 Warning: fopen(..): failed to open stream: %s in %s on line %d
58 Warning: fopen(../): failed to open stream: %s in %s on line %d
63 Warning: fopen(/): failed to open stream: %s in %s on line %d
68 Warning: fopen(../bad/.): failed to open stream: %s in %s on line %d
78 Warning: fopen(./../.): failed to open stream: %s in %s on line %d
80 resource(%d) of type (stream)
81 resource(%d) of type (stream)
82 resource(%d) of type (stream)
83 resource(%d) of type (stream)
[all …]
/PHP-5.5/ext/standard/tests/streams/
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)

Completed in 97 milliseconds

12345678910>>...27