/PHP-7.4/main/streams/ |
H A D | mmap.c | 23 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mm… in _php_stream_mmap_range() argument 32 …if (PHP_STREAM_OPTION_RETURN_OK == php_stream_set_option(stream, PHP_STREAM_OPTION_MMAP_API, PHP_S… in _php_stream_mmap_range() 41 PHPAPI int _php_stream_mmap_unmap(php_stream *stream) in _php_stream_mmap_unmap() argument 43 …return php_stream_set_option(stream, PHP_STREAM_OPTION_MMAP_API, PHP_STREAM_MMAP_UNMAP, NULL) == P… in _php_stream_mmap_unmap() 46 PHPAPI int _php_stream_mmap_unmap_ex(php_stream *stream, zend_off_t readden) in _php_stream_mmap_unmap_ex() argument 50 if (php_stream_seek(stream, readden, SEEK_CUR) != 0) { in _php_stream_mmap_unmap_ex() 53 if (php_stream_mmap_unmap(stream) == 0) { in _php_stream_mmap_unmap_ex()
|
H A D | xp_socket.c | 174 stream->eof = 1; in php_sockop_read() 177 stream->eof = 1; in php_sockop_read() 659 if (PHP_STREAM_CONTEXT(stream) in php_tcp_sockop_bind() 669 if (PHP_STREAM_CONTEXT(stream) in php_tcp_sockop_bind() 679 && PHP_STREAM_CONTEXT(stream) in php_tcp_sockop_bind() 847 if (stream->ctx) { in php_tcp_sockop_accept() 848 GC_ADDREF(stream->ctx); in php_tcp_sockop_accept() 894 php_stream *stream = NULL; in php_stream_generic_socket_factory() local 929 if (stream == NULL) { in php_stream_generic_socket_factory() 935 return stream; in php_stream_generic_socket_factory() [all …]
|
/PHP-7.4/ext/zip/ |
H A D | zip_stream.c | 40 php_stream *stream; member 59 stream->eof = 1; in php_zip_ops_read() 64 stream->eof = 1; in php_zip_ops_read() 73 stream->eof = 1; in php_zip_ops_read() 85 if (!stream) { in php_zip_ops_write() 117 if (!stream) { in php_zip_ops_flush() 243 self->stream = NULL; in php_stream_zip_open() 252 if (!stream) { in php_stream_zip_open() 255 return stream; in php_stream_zip_open() 343 if (!stream) { in php_stream_zip_opener() [all …]
|
/PHP-7.4/ext/sodium/tests/ |
H A D | crypto_stream.phpt | 2 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);
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | userstreams_002.phpt | 34 test("valid stream", $fd, STDIN); 37 test("return value not a stream resource", $fd, "foo"); 38 test("return value is stream itself", $fd, $fd); 46 ------ valid stream: ------- 55 Warning: stream_select(): No stream arrays were passed in %s 62 Warning: stream_select(): No stream arrays were passed in %s 65 ------ return value not a stream resource: ------- 73 Warning: stream_select(): No stream arrays were passed in %s 76 ------ return value is stream itself: ------- 82 Warning: stream_select(): No stream arrays were passed in %s [all …]
|
H A D | fputcsv_variation16.phpt | 9 $stream = fopen('php://memory', 'w+'); 11 fputcsv($stream, $record, ',', '"', ''); 13 rewind($stream); 14 echo stream_get_contents($stream); 15 fclose($stream);
|
H A D | fgetcsv_variation32.phpt | 10 $stream = fopen('php://memory', 'w+'); 11 fwrite($stream, $contents); 12 rewind($stream); 13 while (($data = fgetcsv($stream, 0, ',', '"', '')) !== false) { 16 fclose($stream);
|
H A D | ftruncate_bug77081.phpt | 9 $stream = fopen($filename, 'c'); 10 ftruncate($stream, 0); 11 var_dump(ftell($stream)); 12 fwrite($stream, 'bar'); 13 fclose($stream);
|
H A D | include_userstream_002.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 …]
|
/PHP-7.4/tests/output/ |
H A D | sapi_windows_vt100_support.inc | 38 'Not a stream' => 'foo', 39 'Invalid stream (php://temp)' => fopen('php://temp', 'wb'), 40 'Invalid stream (php://input)' => fopen('php://input', 'wb'), 41 'Invalid stream (php://memory)' => fopen('php://memory', 'wb'), 42 'File stream' => $closeMe = fopen(__FILE__, 'rb'), 45 foreach ($sampleStreams as $name => $stream) { 47 echo "- current value : "; var_dump(sapi_windows_vt100_support($stream)); 48 echo "- enabling VT100 : "; var_dump(sapi_windows_vt100_support($stream, true)); 49 echo "- current value : "; var_dump(sapi_windows_vt100_support($stream)); 50 echo "- disabling VT100: "; var_dump(sapi_windows_vt100_support($stream, false)); [all …]
|
H A D | stream_isatty.inc | 15 'Not a stream' => 'foo', 16 'Invalid stream (php://temp)' => fopen('php://temp', 'wb'), 17 'Invalid stream (php://input)' => fopen('php://input', 'wb'), 18 'Invalid stream (php://memory)' => fopen('php://memory', 'wb'), 19 'File stream' => $closeMe = fopen(__FILE__, 'rb'), 22 foreach ($sampleStreams as $name => $stream) { 23 echo "$name: "; var_dump(stream_isatty($stream));
|
/PHP-7.4/Zend/ |
H A D | zend_stream.c | 57 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() 92 if (file_handle->handle.stream.reader(file_handle->handle.stream.handle, &buf, sizeof(buf))) { in zend_stream_getc() 100 if (file_handle->handle.stream.isatty) { in zend_stream_read() 113 return file_handle->handle.stream.reader(file_handle->handle.stream.handle, buf, len); in zend_stream_read() 138 file_handle->handle.stream.handle = file_handle->handle.fp; in zend_stream_fixup() 139 file_handle->handle.stream.isatty = isatty(fileno((FILE *)file_handle->handle.stream.handle)); in zend_stream_fixup() 209 if (fh->handle.stream.closer && fh->handle.stream.handle) { in zend_file_handle_dtor() 210 fh->handle.stream.closer(fh->handle.stream.handle); in zend_file_handle_dtor() 212 fh->handle.stream.handle = NULL; in zend_file_handle_dtor() [all …]
|
/PHP-7.4/ext/phar/tests/ |
H A D | bug70091.phpt | 15 $stream = fopen(__DIR__ . '/bug70091.zip', 'r'); 17 $data = fread($stream, 8); 20 fseek($stream, 53); 21 $data = fread($stream, 8); 24 fseek($stream, 104); 25 $data = fread($stream, 10); 28 fseek($stream, 173); 29 $data = fread($stream, 10);
|
/PHP-7.4/ext/openssl/ |
H A D | xp_ssl.c | 186 stream->wrapper && in php_openssl_is_http_stream_talking_to_iis() 235 stream->eof = 1; in php_openssl_handle_ssl_error() 295 php_stream *stream; in verify_callback() local 635 php_stream *stream; in php_openssl_win_cert_verify_callback() local 758 php_stream *stream; in php_openssl_load_stream_cafile() local 768 if (stream == NULL) { in php_openssl_load_stream_cafile() 1072 php_stream *stream; in php_openssl_limit_handshake_reneg() local 1329 php_stream *stream; in php_openssl_server_sni_callback() local 2569 if (stream->writepos == stream->readpos in php_openssl_sockop_cast() 2572 php_stream_fill_read_buffer(stream, pending < stream->chunk_size in php_openssl_sockop_cast() [all …]
|
/PHP-7.4/ext/standard/tests/dir/ |
H A D | scandir_variation8-win32-mb.phpt | 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) 108 resource(%d) of type (stream) 111 resource(%d) of type (stream) [all …]
|
H A D | scandir_variation8.phpt | 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) 102 resource(%d) of type (stream) 105 resource(%d) of type (stream) [all …]
|
H A D | readdir_variation4-win32-mb.phpt | 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) 122 resource(%d) of type (stream) 126 resource(%d) of type (stream) 130 resource(%d) of type (stream) [all …]
|
H A D | readdir_variation4.phpt | 88 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-7.4/sapi/phpdbg/tests/ |
H A D | phpdbg_get_executable_stream_wrapper.phpt | 20 * 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-7.4/ext/standard/tests/streams/ |
H A D | stream_select_preserve_keys.phpt | 20 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-7.4/ext/bz2/tests/ |
H A D | bug81092.phpt | 2 Bug #81092 (fflush before stream_filter_remove corrupts stream) 9 $stream = fopen(__DIR__ . "/81092.bz2", 'wb+'); 10 $filter = stream_filter_append($stream, 'bzip2.compress', STREAM_FILTER_WRITE, ['blocks' => 9, 'wor… 11 fwrite($stream, random_bytes(8192)); 12 fflush($stream);
|
/PHP-7.4/ext/phar/ |
H A D | stream.h | 31 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);
|
/PHP-7.4/ext/standard/tests/filters/ |
H A D | bug74267.phpt | 5 $stream = fopen('php://memory', 'w'); 6 stream_filter_append($stream, 'convert.quoted-printable-decode', STREAM_FILTER_WRITE, ['line-break-… 16 fwrite($stream, $line); 19 fclose($stream); 23 Warning: fwrite(): stream filter (convert.quoted-printable-decode): invalid byte sequence in %s on … 25 Warning: fwrite(): stream filter (convert.quoted-printable-decode): invalid byte sequence in %s on …
|
/PHP-7.4/ext/standard/ |
H A D | file.c | 342 php_stream *stream; in PHP_FUNCTION() local 405 if (!md.stream) { in PHP_FUNCTION() 530 php_stream *stream; in PHP_FUNCTION() local 557 if (!stream) { in PHP_FUNCTION() 581 php_stream *stream; in PHP_FUNCTION() local 732 php_stream *stream; in PHP_FUNCTION() local 757 if (!stream) { in PHP_FUNCTION() 849 php_stream *stream; in PHP_NAMED_FUNCTION() local 857 if (stream) { in PHP_NAMED_FUNCTION() 1399 if (stream) { in PHP_FUNCTION() [all …]
|
/PHP-7.4/ext/gd/tests/ |
H A D | bug73549.phpt | 2 Bug #73549 (Use after free when stream is passed to imagepng) 9 $stream = fopen(__DIR__ . DIRECTORY_SEPARATOR . 'bug73549.png', 'w'); 11 var_dump(imagepng($im, $stream)); 12 var_dump($stream); 17 resource(%d) of type (stream)
|