php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
memory.c File Reference
#include "php.h"
#include "ext/standard/base64.h"

Go to the source code of this file.

Data Structures

struct  php_stream_memory_data
 
struct  php_stream_temp_data
 

Macros

#define _GNU_SOURCE
 

Functions

PHPAPI size_t php_url_decode (char *str, size_t len)
 
PHPAPI int php_stream_mode_from_str (const char *mode)
 
PHPAPI const char * _php_stream_mode_to_str (int mode)
 
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_ex (int mode, size_t max_memory_usage, const char *tmpdir STREAMS_DC)
 
PHPAPI php_stream_php_stream_temp_create (int mode, size_t max_memory_usage STREAMS_DC)
 
PHPAPI php_stream_php_stream_temp_open (int mode, size_t max_memory_usage, const char *buf, size_t length STREAMS_DC)
 

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_ops php_stream_rfc2397_wops
 
PHPAPI const php_stream_wrapper php_stream_rfc2397_wrapper
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 18 of file memory.c.

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.

◆ php_url_decode()

PHPAPI size_t php_url_decode ( char * str,
size_t len )

Definition at line 582 of file url.c.

Variable Documentation

◆ php_stream_memory_ops

PHPAPI const php_stream_ops php_stream_memory_ops
Initial value:
= {
php_stream_memory_write, php_stream_memory_read,
php_stream_memory_close, php_stream_memory_flush,
"MEMORY",
php_stream_memory_seek,
php_stream_memory_cast,
php_stream_memory_stat,
php_stream_memory_set_option
}

Definition at line 255 of file memory.c.

◆ php_stream_rfc2397_ops

PHPAPI const php_stream_ops php_stream_rfc2397_ops
Initial value:
= {
NULL, php_stream_temp_read,
php_stream_temp_close, php_stream_temp_flush,
"RFC2397",
php_stream_temp_seek,
php_stream_temp_cast,
php_stream_temp_stat,
php_stream_temp_set_option
}
#define NULL
Definition gdcache.h:45

Definition at line 597 of file memory.c.

◆ php_stream_rfc2397_wops

PHPAPI const php_stream_wrapper_ops php_stream_rfc2397_wops
Initial value:
= {
php_stream_url_wrap_rfc2397,
NULL,
NULL,
NULL,
NULL,
"RFC2397",
NULL,
NULL,
NULL,
NULL,
NULL,
}

Definition at line 749 of file memory.c.

◆ php_stream_rfc2397_wrapper

PHPAPI const php_stream_wrapper php_stream_rfc2397_wrapper
Initial value:
= {
1,
}
PHPAPI const php_stream_wrapper_ops php_stream_rfc2397_wops
Definition memory.c:749

Definition at line 763 of file memory.c.

◆ php_stream_temp_ops

PHPAPI const php_stream_ops php_stream_temp_ops
Initial value:
= {
php_stream_temp_write, php_stream_temp_read,
php_stream_temp_close, php_stream_temp_flush,
"TEMP",
php_stream_temp_seek,
php_stream_temp_cast,
php_stream_temp_stat,
php_stream_temp_set_option
}

Definition at line 535 of file memory.c.