php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_memory_streams.h File Reference
#include "php_streams.h"

Go to the source code of this file.

Macros

#define PHP_STREAM_MAX_MEM   2 * 1024 * 1024
 
#define TEMP_STREAM_DEFAULT   0x0
 
#define TEMP_STREAM_READONLY   0x1
 
#define TEMP_STREAM_TAKE_BUFFER   0x2
 
#define TEMP_STREAM_APPEND   0x4
 
#define php_stream_memory_create(mode)
 
#define php_stream_memory_create_rel(mode)
 
#define php_stream_memory_open(mode, str)
 
#define php_stream_memory_get_buffer(stream)
 
#define php_stream_temp_new()
 
#define php_stream_temp_create(mode, max_memory_usage)
 
#define php_stream_temp_create_ex(mode, max_memory_usage, tmpdir)
 
#define php_stream_temp_create_rel(mode, max_memory_usage)
 
#define php_stream_temp_open(mode, max_memory_usage, buf, length)
 
#define PHP_STREAM_IS_MEMORY   &php_stream_memory_ops
 
#define PHP_STREAM_IS_TEMP   &php_stream_temp_ops
 

Functions

PHPAPI php_stream_php_stream_memory_create (int mode STREAMS_DC)
 
PHPAPI php_stream_php_stream_memory_open (int mode, zend_string *buf STREAMS_DC)
 
PHPAPI zend_string_php_stream_memory_get_buffer (php_stream *stream STREAMS_DC)
 
PHPAPI php_stream_php_stream_temp_create (int mode, size_t max_memory_usage STREAMS_DC)
 
PHPAPI php_stream_php_stream_temp_create_ex (int mode, size_t max_memory_usage, const char *tmpdir STREAMS_DC)
 
PHPAPI php_stream_php_stream_temp_open (int mode, size_t max_memory_usage, const char *buf, size_t length STREAMS_DC)
 
PHPAPI int php_stream_mode_from_str (const char *mode)
 
PHPAPI const char * _php_stream_mode_to_str (int mode)
 

Variables

PHPAPI const php_stream_ops php_stream_memory_ops
 
PHPAPI const php_stream_ops php_stream_temp_ops
 
PHPAPI const php_stream_ops php_stream_rfc2397_ops
 
PHPAPI const php_stream_wrapper php_stream_rfc2397_wrapper
 

Macro Definition Documentation

◆ PHP_STREAM_IS_MEMORY

#define PHP_STREAM_IS_MEMORY   &php_stream_memory_ops

Definition at line 60 of file php_memory_streams.h.

◆ PHP_STREAM_IS_TEMP

#define PHP_STREAM_IS_TEMP   &php_stream_temp_ops

Definition at line 61 of file php_memory_streams.h.

◆ PHP_STREAM_MAX_MEM

#define PHP_STREAM_MAX_MEM   2 * 1024 * 1024

Definition at line 22 of file php_memory_streams.h.

◆ php_stream_memory_create

#define php_stream_memory_create ( mode)
Value:
char * mode
PHPAPI php_stream * _php_stream_memory_create(int mode STREAMS_DC)
Definition memory.c:290
#define STREAMS_CC
Definition php_streams.h:54

Definition at line 29 of file php_memory_streams.h.

◆ php_stream_memory_create_rel

#define php_stream_memory_create_rel ( mode)
Value:

Definition at line 30 of file php_memory_streams.h.

◆ php_stream_memory_get_buffer

#define php_stream_memory_get_buffer ( stream)
Value:
PHPAPI zend_string * _php_stream_memory_get_buffer(php_stream *stream STREAMS_DC)
Definition memory.c:323

Definition at line 32 of file php_memory_streams.h.

◆ php_stream_memory_open

#define php_stream_memory_open ( mode,
str )
Value:
PHPAPI php_stream * _php_stream_memory_open(int mode, zend_string *buf STREAMS_DC)
Definition memory.c:308

Definition at line 31 of file php_memory_streams.h.

◆ php_stream_temp_create

#define php_stream_temp_create ( mode,
max_memory_usage )
Value:
_php_stream_temp_create((mode), (max_memory_usage) STREAMS_CC)
PHPAPI php_stream * _php_stream_temp_create(int mode, size_t max_memory_usage STREAMS_DC)
Definition memory.c:570

Definition at line 35 of file php_memory_streams.h.

◆ php_stream_temp_create_ex

#define php_stream_temp_create_ex ( mode,
max_memory_usage,
tmpdir )
Value:
_php_stream_temp_create_ex((mode), (max_memory_usage), (tmpdir) STREAMS_CC)
PHPAPI php_stream * _php_stream_temp_create_ex(int mode, size_t max_memory_usage, const char *tmpdir STREAMS_DC)
Definition memory.c:548

Definition at line 36 of file php_memory_streams.h.

◆ php_stream_temp_create_rel

#define php_stream_temp_create_rel ( mode,
max_memory_usage )
Value:

Definition at line 37 of file php_memory_streams.h.

◆ php_stream_temp_new

#define php_stream_temp_new ( )
Value:
#define TEMP_STREAM_DEFAULT
#define php_stream_temp_create(mode, max_memory_usage)
#define PHP_STREAM_MAX_MEM

Definition at line 34 of file php_memory_streams.h.

◆ php_stream_temp_open

#define php_stream_temp_open ( mode,
max_memory_usage,
buf,
length )
Value:
_php_stream_temp_open((mode), (max_memory_usage), (buf), (length) STREAMS_CC)
zend_ffi_ctype_name_buf buf
Definition ffi.c:4685
PHPAPI php_stream * _php_stream_temp_open(int mode, size_t max_memory_usage, const char *buf, size_t length STREAMS_DC)
Definition memory.c:577

Definition at line 38 of file php_memory_streams.h.

◆ TEMP_STREAM_APPEND

#define TEMP_STREAM_APPEND   0x4

Definition at line 27 of file php_memory_streams.h.

◆ TEMP_STREAM_DEFAULT

#define TEMP_STREAM_DEFAULT   0x0

Definition at line 24 of file php_memory_streams.h.

◆ TEMP_STREAM_READONLY

#define TEMP_STREAM_READONLY   0x1

Definition at line 25 of file php_memory_streams.h.

◆ TEMP_STREAM_TAKE_BUFFER

#define TEMP_STREAM_TAKE_BUFFER   0x2

Definition at line 26 of file php_memory_streams.h.

Function Documentation

◆ _php_stream_memory_create()

PHPAPI php_stream * _php_stream_memory_create ( int mode STREAMS_DC)

Definition at line 290 of file memory.c.

◆ _php_stream_memory_get_buffer()

PHPAPI zend_string * _php_stream_memory_get_buffer ( php_stream *stream STREAMS_DC)

Definition at line 323 of file memory.c.

◆ _php_stream_memory_open()

PHPAPI php_stream * _php_stream_memory_open ( int mode,
zend_string *buf STREAMS_DC )

Definition at line 308 of file memory.c.

◆ _php_stream_mode_to_str()

PHPAPI const char * _php_stream_mode_to_str ( int mode)

Definition at line 278 of file memory.c.

◆ _php_stream_temp_create()

PHPAPI php_stream * _php_stream_temp_create ( int mode,
size_t max_memory_usage STREAMS_DC )

Definition at line 570 of file memory.c.

◆ _php_stream_temp_create_ex()

PHPAPI php_stream * _php_stream_temp_create_ex ( int mode,
size_t max_memory_usage,
const char *tmpdir STREAMS_DC )

Definition at line 548 of file memory.c.

◆ _php_stream_temp_open()

PHPAPI php_stream * _php_stream_temp_open ( int mode,
size_t max_memory_usage,
const char * buf,
size_t length STREAMS_DC )

Definition at line 577 of file memory.c.

◆ php_stream_mode_from_str()

PHPAPI int php_stream_mode_from_str ( const char * mode)

Definition at line 266 of file memory.c.

Variable Documentation

◆ php_stream_memory_ops

PHPAPI const php_stream_ops php_stream_memory_ops
extern

Definition at line 255 of file memory.c.

◆ php_stream_rfc2397_ops

PHPAPI const php_stream_ops php_stream_rfc2397_ops
extern

Definition at line 597 of file memory.c.

◆ php_stream_rfc2397_wrapper

PHPAPI const php_stream_wrapper php_stream_rfc2397_wrapper
extern

Definition at line 763 of file memory.c.

◆ php_stream_temp_ops

PHPAPI const php_stream_ops php_stream_temp_ops
extern

Definition at line 535 of file memory.c.