php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_stream_plain_wrapper.h File Reference

Go to the source code of this file.

Macros

#define php_stream_fopen(filename, mode, opened)
 
#define php_stream_fopen_with_path(filename, mode, path, opened)
 
#define php_stream_fopen_from_file(file, mode)
 
#define php_stream_fopen_from_fd(fd, mode, persistent_id)
 
#define php_stream_fopen_from_pipe(file, mode)
 
#define php_stream_fopen_tmpfile()
 
#define php_stream_fopen_temporary_file(dir, pfx, opened_path)
 
#define php_stream_open_wrapper_as_file(path, mode, options, opened_path)
 

Functions

PHPAPI php_stream_php_stream_fopen (const char *filename, const char *mode, zend_string **opened_path, int options STREAMS_DC)
 
PHPAPI php_stream_php_stream_fopen_with_path (const char *filename, const char *mode, const char *path, zend_string **opened_path, int options STREAMS_DC)
 
PHPAPI php_stream_php_stream_fopen_from_file (FILE *file, const char *mode STREAMS_DC)
 
PHPAPI php_stream_php_stream_fopen_from_fd (int fd, const char *mode, const char *persistent_id, bool zero_position STREAMS_DC)
 
PHPAPI php_stream_php_stream_fopen_from_pipe (FILE *file, const char *mode STREAMS_DC)
 
PHPAPI php_stream_php_stream_fopen_tmpfile (int dummy STREAMS_DC)
 
PHPAPI php_stream_php_stream_fopen_temporary_file (const char *dir, const char *pfx, zend_string **opened_path STREAMS_DC)
 
PHPAPI FILE * _php_stream_open_wrapper_as_file (char *path, char *mode, int options, zend_string **opened_path STREAMS_DC)
 
PHPAPI int php_stream_parse_fopen_modes (const char *mode, int *open_flags)
 

Variables

PHPAPI php_stream_ops php_stream_stdio_ops
 
PHPAPI php_stream_wrapper php_plain_files_wrapper
 

Macro Definition Documentation

◆ php_stream_fopen

#define php_stream_fopen ( filename,
mode,
opened )
Value:
_php_stream_fopen((filename), (mode), (opened), 0 STREAMS_CC)
char * mode
PHPAPI php_stream * _php_stream_fopen(const char *filename, const char *mode, zend_string **opened_path, int options STREAMS_DC)
#define STREAMS_CC
Definition php_streams.h:54

Definition at line 27 of file php_stream_plain_wrapper.h.

◆ php_stream_fopen_from_fd

#define php_stream_fopen_from_fd ( fd,
mode,
persistent_id )
Value:
_php_stream_fopen_from_fd((fd), (mode), (persistent_id), false STREAMS_CC)
PHPAPI php_stream * _php_stream_fopen_from_fd(int fd, const char *mode, const char *persistent_id, bool zero_position STREAMS_DC)
int fd
Definition phpdbg.h:282

Definition at line 36 of file php_stream_plain_wrapper.h.

◆ php_stream_fopen_from_file

#define php_stream_fopen_from_file ( file,
mode )
Value:
file(string $filename, int $flags=0, $context=null)
PHPAPI php_stream * _php_stream_fopen_from_file(FILE *file, const char *mode STREAMS_DC)

Definition at line 33 of file php_stream_plain_wrapper.h.

◆ php_stream_fopen_from_pipe

#define php_stream_fopen_from_pipe ( file,
mode )
Value:
PHPAPI php_stream * _php_stream_fopen_from_pipe(FILE *file, const char *mode STREAMS_DC)

Definition at line 39 of file php_stream_plain_wrapper.h.

◆ php_stream_fopen_temporary_file

#define php_stream_fopen_temporary_file ( dir,
pfx,
opened_path )
Value:
dir(string $directory, $context=null)
PHPAPI php_stream * _php_stream_fopen_temporary_file(const char *dir, const char *pfx, zend_string **opened_path STREAMS_DC)

Definition at line 45 of file php_stream_plain_wrapper.h.

◆ php_stream_fopen_tmpfile

#define php_stream_fopen_tmpfile ( )
Value:
PHPAPI php_stream * _php_stream_fopen_tmpfile(int dummy STREAMS_DC)

Definition at line 42 of file php_stream_plain_wrapper.h.

◆ php_stream_fopen_with_path

#define php_stream_fopen_with_path ( filename,
mode,
path,
opened )
Value:
_php_stream_fopen_with_path((filename), (mode), (path), (opened), 0 STREAMS_CC)
PHPAPI php_stream * _php_stream_fopen_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path, int options STREAMS_DC)

Definition at line 30 of file php_stream_plain_wrapper.h.

◆ php_stream_open_wrapper_as_file

#define php_stream_open_wrapper_as_file ( path,
mode,
options,
opened_path )
Value:
PHPAPI FILE * _php_stream_open_wrapper_as_file(char *path, char *mode, int options, zend_string **opened_path STREAMS_DC)
Definition cast.c:350
PHP_JSON_API size_t int options
Definition php_json.h:102

Definition at line 51 of file php_stream_plain_wrapper.h.

Function Documentation

◆ _php_stream_fopen()

PHPAPI php_stream * _php_stream_fopen ( const char * filename,
const char * mode,
zend_string ** opened_path,
int options STREAMS_DC )

Definition at line 1119 of file plain_wrapper.c.

◆ _php_stream_fopen_from_fd()

PHPAPI php_stream * _php_stream_fopen_from_fd ( int fd,
const char * mode,
const char * persistent_id,
bool zero_position STREAMS_DC )

Definition at line 278 of file plain_wrapper.c.

◆ _php_stream_fopen_from_file()

PHPAPI php_stream * _php_stream_fopen_from_file ( FILE * file,
const char *mode STREAMS_DC )

Definition at line 307 of file plain_wrapper.c.

◆ _php_stream_fopen_from_pipe()

PHPAPI php_stream * _php_stream_fopen_from_pipe ( FILE * file,
const char *mode STREAMS_DC )

Definition at line 326 of file plain_wrapper.c.

◆ _php_stream_fopen_temporary_file()

PHPAPI php_stream * _php_stream_fopen_temporary_file ( const char * dir,
const char * pfx,
zend_string **opened_path STREAMS_DC )

◆ _php_stream_fopen_tmpfile()

PHPAPI php_stream * _php_stream_fopen_tmpfile ( int dummy STREAMS_DC)

Definition at line 250 of file plain_wrapper.c.

◆ _php_stream_fopen_with_path()

PHPAPI php_stream * _php_stream_fopen_with_path ( const char * filename,
const char * mode,
const char * path,
zend_string ** opened_path,
int options STREAMS_DC )

Definition at line 1627 of file plain_wrapper.c.

◆ _php_stream_open_wrapper_as_file()

PHPAPI FILE * _php_stream_open_wrapper_as_file ( char * path,
char * mode,
int options,
zend_string **opened_path STREAMS_DC )

Definition at line 350 of file cast.c.

◆ php_stream_parse_fopen_modes()

PHPAPI int php_stream_parse_fopen_modes ( const char * mode,
int * open_flags )

Definition at line 71 of file plain_wrapper.c.

Variable Documentation

◆ php_plain_files_wrapper

PHPAPI php_stream_wrapper php_plain_files_wrapper
extern

Definition at line 1620 of file plain_wrapper.c.

◆ php_stream_stdio_ops

PHPAPI php_stream_ops php_stream_stdio_ops
extern

Definition at line 1024 of file plain_wrapper.c.