/PHP-8.3/main/streams/ |
H A D | php_stream_transport.h | 58 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, 117 PHPAPI int php_stream_xport_shutdown(php_stream *stream, stream_shutdown_t how); 151 php_stream *client; 194 …API int php_stream_xport_crypto_setup(php_stream *stream, php_stream_xport_crypt_method_t crypto_m… 195 PHPAPI int php_stream_xport_crypto_enable(php_stream *stream, int activate); [all …]
|
H A D | php_stream_plain_wrapper.h | 26 PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, zend_string **opened_p… 29 PHPAPI php_stream *_php_stream_fopen_with_path(const char *filename, const char *mode, const char *… 32 PHPAPI php_stream *_php_stream_fopen_from_file(FILE *file, const char *mode STREAMS_DC); 35 PHPAPI php_stream *_php_stream_fopen_from_fd(int fd, const char *mode, const char *persistent_id, b… 38 PHPAPI php_stream *_php_stream_fopen_from_pipe(FILE *file, const char *mode STREAMS_DC); 41 PHPAPI php_stream *_php_stream_fopen_tmpfile(int dummy STREAMS_DC); 44 PHPAPI php_stream *_php_stream_fopen_temporary_file(const char *dir, const char *pfx, zend_string *…
|
H A D | cast.c | 72 ret = php_stream_read((php_stream*)cookie, buffer, size); in stream_cookie_reader() 79 return php_stream_write((php_stream *)cookie, (char *)buffer, size); in stream_cookie_writer() 85 return (PHP_FPOS_T)php_stream_seek((php_stream *)cookie, position, whence); in stream_cookie_seeker() 90 php_stream *stream = (php_stream*)cookie; in stream_cookie_closer() 102 ret = php_stream_read(((php_stream *)cookie), buffer, size); in stream_cookie_reader() 109 return php_stream_write(((php_stream *)cookie), (char *)buffer, size); in stream_cookie_writer() 119 *position = php_stream_seek((php_stream *)cookie, (zend_off_t)*position, whence); in stream_cookie_seeker() 129 php_stream *stream = (php_stream*)cookie; in stream_cookie_closer() 272 php_stream *newstream; in _php_stream_cast() 353 php_stream *stream = NULL; in _php_stream_open_wrapper_as_file() [all …]
|
H A D | memory.c | 102 static int php_stream_memory_close(php_stream *stream, int close_handle) in php_stream_memory_close() 114 static int php_stream_memory_flush(php_stream *stream) in php_stream_memory_flush() 290 PHPAPI php_stream *_php_stream_memory_create(int mode STREAMS_DC) in _php_stream_memory_create() 293 php_stream *stream; in _php_stream_memory_create() 310 php_stream *stream; in _php_stream_memory_open() 336 php_stream *innerstream; 424 static int php_stream_temp_flush(php_stream *stream) in php_stream_temp_flush() 458 php_stream *file; in php_stream_temp_cast() 551 php_stream *stream; in _php_stream_temp_create_ex() 579 php_stream *stream; in _php_stream_temp_open() [all …]
|
H A D | php_stream_glob_wrapper.h | 22 PHPAPI char* _php_glob_stream_get_path(php_stream *stream, size_t *plen STREAMS_DC); 25 PHPAPI char* _php_glob_stream_get_pattern(php_stream *stream, size_t *plen STREAMS_DC); 28 PHPAPI int _php_glob_stream_get_count(php_stream *stream, int *pflags STREAMS_DC);
|
H A D | mmap.c | 21 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mm… in _php_stream_mmap_range() 39 PHPAPI int _php_stream_mmap_unmap(php_stream *stream) in _php_stream_mmap_unmap() 44 PHPAPI int _php_stream_mmap_unmap_ex(php_stream *stream, zend_off_t readden) in _php_stream_mmap_unmap_ex()
|
H A D | php_stream_mmap.h | 68 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mm… 72 PHPAPI int _php_stream_mmap_unmap(php_stream *stream); 75 PHPAPI int _php_stream_mmap_unmap_ex(php_stream *stream, zend_off_t readden);
|
H A D | transports.c | 52 PHPAPI php_stream *_php_stream_xport_create(const char *name, size_t namelen, int options, in _php_stream_xport_create() 60 php_stream *stream = NULL; in _php_stream_xport_create() 201 PHPAPI int php_stream_xport_bind(php_stream *stream, in php_stream_xport_bind() 229 PHPAPI int php_stream_xport_connect(php_stream *stream, in php_stream_xport_connect() 289 PHPAPI int php_stream_xport_accept(php_stream *stream, php_stream **client, in php_stream_xport_accept() 327 PHPAPI int php_stream_xport_get_name(php_stream *stream, int want_peer, in php_stream_xport_get_name() 357 …API int php_stream_xport_crypto_setup(php_stream *stream, php_stream_xport_crypt_method_t crypto_m… in php_stream_xport_crypto_setup() 378 PHPAPI int php_stream_xport_crypto_enable(php_stream *stream, int activate) in php_stream_xport_crypto_enable() 400 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, in php_stream_xport_recvfrom() 469 PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, in php_stream_xport_sendto() [all …]
|
H A D | streams.c | 69 php_stream *stream; in forget_persistent_resource_id_numbers() 76 stream = (php_stream*)rsrc->ptr; in forget_persistent_resource_id_numbers() 102 PHPAPI php_stream *php_stream_encloses(php_stream *enclosing, php_stream *enclosed) in php_stream_encloses() 280 php_stream *ret; in _php_stream_alloc() 282 ret = (php_stream*) pemalloc_rel_orig(sizeof(php_stream), persistent_id ? 1 : 0); in _php_stream_alloc() 1823 php_stream *stream = (php_stream*)rsrc->ptr; in stream_resource_regular_dtor() 1830 php_stream *stream = (php_stream*)rsrc->ptr; in stream_resource_persistent_dtor() 2137 php_stream *stream = NULL; 2186 php_stream *stream = NULL; 2278 php_stream *newstream; [all …]
|
/PHP-8.3/main/ |
H A D | php_streams.h | 96 typedef struct _php_stream php_stream; typedef 123 int (*close)(php_stream *stream, int close_handle); 124 int (*flush)(php_stream *stream); 293 PHPAPI php_stream *php_stream_encloses(php_stream *enclosing, php_stream *enclosed); 322 PHPAPI zend_off_t _php_stream_tell(php_stream *stream); 342 PHPAPI bool _php_stream_eof(php_stream *stream); 345 PHPAPI int _php_stream_getc(php_stream *stream); 348 PHPAPI int _php_stream_putc(php_stream *stream, int c); 484 PHPAPI size_t _php_stream_copy_to_stream(php_stream *src, php_stream *dest, size_t maxlen STREAMS_D… 486 PHPAPI zend_result _php_stream_copy_to_stream_ex(php_stream *src, php_stream *dest, size_t maxlen, … [all …]
|
H A D | php_memory_streams.h | 42 PHPAPI php_stream *_php_stream_memory_create(int mode STREAMS_DC); 43 PHPAPI php_stream *_php_stream_memory_open(int mode, zend_string *buf STREAMS_DC); 44 PHPAPI zend_string *_php_stream_memory_get_buffer(php_stream *stream STREAMS_DC); 46 PHPAPI php_stream *_php_stream_temp_create(int mode, size_t max_memory_usage STREAMS_DC); 47 PHPAPI php_stream *_php_stream_temp_create_ex(int mode, size_t max_memory_usage, const char *tmpdir… 48 PHPAPI php_stream *_php_stream_temp_open(int mode, size_t max_memory_usage, const char *buf, size_t…
|
/PHP-8.3/ext/phar/ |
H A D | stream.h | 25 static php_stream* phar_wrapper_open_url(php_stream_wrapper *wrapper, const char *path, const char … 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);
|
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… 34 php_stream* phar_wrapper_open_dir(php_stream_wrapper *wrapper, const char *path, const char *mode, …
|
H A D | phar_internal.h | 249 php_stream *fp; 250 php_stream *cfp; 298 php_stream *fp; 300 php_stream *ufp; 331 php_stream *fp; 332 php_stream *ufp; 336 static inline php_stream *phar_get_entrypfp(phar_entry_info *entry) in phar_get_entrypfp() 372 static inline php_stream *phar_get_pharfp(phar_archive_data *phar) in phar_get_pharfp() 380 static inline php_stream *phar_get_pharufp(phar_archive_data *phar) in phar_get_pharufp() 457 php_stream *fp; [all …]
|
/PHP-8.3/ext/zlib/ |
H A D | zlib_fopen_wrapper.c | 30 php_stream *stream; 33 static ssize_t php_gziop_read(php_stream *stream, char *buf, size_t count) in php_gziop_read() 48 static ssize_t php_gziop_write(php_stream *stream, const char *buf, size_t count) in php_gziop_write() 56 static int php_gziop_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) in php_gziop_seek() 71 static int php_gziop_close(php_stream *stream, int close_handle) in php_gziop_close() 91 static int php_gziop_flush(php_stream *stream) in php_gziop_flush() 108 php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, const char *path, const char *mode, int … in php_stream_gzopen() 112 php_stream *stream = NULL, *innerstream = NULL; in php_stream_gzopen()
|
/PHP-8.3/ext/zip/ |
H A D | zip_stream.c | 38 php_stream *stream; 46 static ssize_t php_zip_ops_read(php_stream *stream, char *buf, size_t count) in php_zip_ops_read() 81 static ssize_t php_zip_ops_write(php_stream *stream, const char *buf, size_t count) in php_zip_ops_write() 92 static int php_zip_ops_close(php_stream *stream, int close_handle) in php_zip_ops_close() 113 static int php_zip_ops_flush(php_stream *stream) in php_zip_ops_flush() 123 static int php_zip_ops_stat(php_stream *stream, php_stream_statbuf *ssb) /* {{{ */ in php_zip_ops_stat() 202 static int php_zip_ops_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffse… in php_zip_ops_seek() 240 php_stream *php_stream_zip_open(struct zip *arch, struct zip_stat *sb, const char *mode, zip_flags_… in php_stream_zip_open() 244 php_stream *stream = NULL; in php_stream_zip_open() 277 php_stream *php_stream_zip_opener(php_stream_wrapper *wrapper, in php_stream_zip_opener() [all …]
|
/PHP-8.3/ext/standard/ |
H A D | file.h | 46 PHPAPI void php_fstat(php_stream *stream, zval *return_value); 47 PHPAPI void php_flock_common(php_stream *stream, zend_long operation, uint32_t operation_arg_num, 52 PHPAPI HashTable *php_fgetcsv(php_stream *stream, char delimiter, char enclosure, int escape_char, … 53 PHPAPI ssize_t php_fputcsv(php_stream *stream, zval *fields, char delimiter, char enclosure, int es… 82 php_stream *stream;
|
H A D | php_fopen_wrapper.c | 32 static ssize_t php_stream_output_write(php_stream *stream, const char *buf, size_t count) /* {{{ */ in php_stream_output_write() 39 static ssize_t php_stream_output_read(php_stream *stream, char *buf, size_t count) /* {{{ */ in php_stream_output_read() 46 static int php_stream_output_close(php_stream *stream, int close_handle) /* {{{ */ in php_stream_output_close() 65 php_stream *body; 70 static ssize_t php_stream_input_write(php_stream *stream, const char *buf, size_t count) /* {{{ */ in php_stream_input_write() 76 static ssize_t php_stream_input_read(php_stream *stream, char *buf, size_t count) /* {{{ */ in php_stream_input_read() 108 static int php_stream_input_close(php_stream *stream, int close_handle) /* {{{ */ in php_stream_input_close() 117 static int php_stream_input_flush(php_stream *stream) /* {{{ */ in php_stream_input_flush() 123 static int php_stream_input_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *new… in php_stream_input_seek() 176 php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, const char *path, const char *mod… in php_stream_url_wrap_php() [all …]
|
H A D | php_image.h | 52 PHPAPI int php_getimagetype(php_stream *stream, const char *input, char *filetype); 56 PHPAPI bool php_is_image_avif(php_stream *stream);
|
H A D | image.c | 69 static struct gfxinfo *php_handle_gif (php_stream * stream) in php_handle_gif() 91 static struct gfxinfo *php_handle_psd (php_stream * stream) in php_handle_psd() 111 static struct gfxinfo *php_handle_bmp (php_stream * stream) in php_handle_bmp() 161 static struct gfxinfo *php_handle_swc(php_stream * stream) in php_handle_swc() 335 static unsigned short php_read2(php_stream * stream) in php_read2() 384 static int php_skip_variable(php_stream * stream) in php_skip_variable() 534 static unsigned int php_read4(php_stream * stream) in php_read4() 645 static struct gfxinfo *php_handle_jp2(php_stream *stream) in php_handle_jp2() 1143 php_stream* stream; 1204 bool php_is_image_avif(php_stream* stream) { in php_is_image_avif() [all …]
|
H A D | php_fopen_wrappers.h | 22 php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, const char *path, const char *mod… 23 php_stream *php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, const char *path, const char *mode…
|
/PHP-8.3/ext/bz2/ |
H A D | php_bz2.h | 49 PHP_BZ2_API php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper, const char *path, const ch… 50 PHP_BZ2_API php_stream *_php_stream_bz2open_from_BZFILE(BZFILE *bz, const char *mode, php_stream *i…
|
/PHP-8.3/ext/ftp/ |
H A D | ftp.h | 75 php_stream *stream; /* output stream for "nonblocking" transfers */ 183 int ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, const size_t path_len, ftptype… 188 int ftp_put(ftpbuf_t *ftp, const char *path, const size_t path_len, php_stream *instream, ftptype_… 193 int ftp_append(ftpbuf_t *ftp, const char *path, const size_t path_len, php_stream *instream, ftpty… 213 int ftp_nb_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, const size_t path_len, ftpt… 218 int ftp_nb_put(ftpbuf_t *ftp, const char *path, const size_t path_len, php_stream *instream, ftpty…
|
/PHP-8.3/docs/ |
H A D | streams.md | 27 PHPAPI size_t php_stream_printf(php_stream * stream, 29 PHPAPI int php_stream_eof(php_stream * stream); 30 PHPAPI int php_stream_getc(php_stream * stream); 32 PHPAPI int php_stream_close(php_stream * stream); 33 PHPAPI int php_stream_flush(php_stream * stream); 35 PHPAPI off_t php_stream_tell(php_stream * stream); 78 PHPAPI php_stream *php_stream_fopen_tmpfile(void); 108 php_stream *dest, size_t maxlen); 135 PHPAPI int php_stream_make_seekable(php_stream *origstream, php_stream **newstream); 182 php_stream * stream; /* already opened */ [all …]
|
/PHP-8.3/ext/pgsql/ |
H A D | php_pgsql.h | 93 static ssize_t php_pgsql_fd_write(php_stream *stream, const char *buf, size_t count); 94 static ssize_t php_pgsql_fd_read(php_stream *stream, char *buf, size_t count); 95 static int php_pgsql_fd_close(php_stream *stream, int close_handle); 96 static int php_pgsql_fd_flush(php_stream *stream); 97 static int php_pgsql_fd_set_option(php_stream *stream, int option, int value, void *ptrparam); 98 static int php_pgsql_fd_cast(php_stream *stream, int cast_as, void **ret);
|