/PHP-7.4/ext/standard/tests/image/ |
H A D | image_type_to_mime_type_variation2.phpt | 46 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 D | bug77069.phpt | 2 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 D | bug81659.phpt | 5 $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 D | bug75776.phpt | 15 $stream = fopen(__DIR__ . "/75776.$ext", 'w'); 16 stream_filter_append($stream, $filter); 17 fwrite($stream,"sdfgdfg"); 18 fflush($stream); 19 fclose($stream);
|
H A D | bug53427.phpt | 18 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 D | include_userstream_003.phpt | 11 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 D | bug68532.phpt | 6 $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 D | stream_supports_lock.phpt | 34 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 D | bug52820.phpt | 2 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 D | php_fd_wrapper_03.phpt | 14 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 D | 002.phpt | 77 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 D | dirstream.h | 28 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 D | streams.md | 63 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 D | gd_ctx.c | 47 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 D | bug48725_2.phpt | 2 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 D | http_fopen_wrapper.c | 230 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 D | basic.phpt | 2 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 D | bug73586.phpt | 2 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 D | bug72941.phpt | 28 $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 D | glob_wrapper.c | 48 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 D | php_stream_transport.h | 60 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 D | socket_export_stream-1.phpt | 17 $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 D | sapi_windows_vt100_support_winko_err.phpt | 79 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 D | sapi_windows_vt100_support_winko_in-err.phpt | 79 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 D | sapi_windows_vt100_support_winko_in-out-err.phpt | 79 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 …]
|