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

Go to the source code of this file.

Data Structures

struct  _php_conv
 
struct  _php_conv_base64_encode
 
struct  _php_conv_base64_decode
 
struct  _php_conv_qprint_encode
 
struct  _php_conv_qprint_decode
 
struct  _php_convert_filter
 
struct  _php_consumed_filter_data
 
struct  _php_chunked_filter_data
 

Macros

#define php_conv_convert(a, b, c, d, e)
 
#define php_conv_dtor(a)
 
#define bmask(a)
 
#define PHP_CONV_QPRINT_OPT_BINARY   0x00000001
 
#define PHP_CONV_QPRINT_OPT_FORCE_ENCODE_FIRST   0x00000002
 
#define NEXT_CHAR(ps, icnt, lb_ptr, lb_cnt, lbchars)
 
#define CONSUME_CHAR(ps, icnt, lb_ptr, lb_cnt)
 
#define PHP_CONV_BASE64_ENCODE   1
 
#define PHP_CONV_BASE64_DECODE   2
 
#define PHP_CONV_QPRINT_ENCODE   3
 
#define PHP_CONV_QPRINT_DECODE   4
 
#define GET_STR_PROP(ht, var, var_len, fldname, persistent)
 
#define GET_INT_PROP(ht, var, fldname)
 
#define GET_UINT_PROP(ht, var, fldname)
 
#define GET_BOOL_PROP(ht, var, fldname)
 

Typedefs

typedef enum _php_conv_err_t php_conv_err_t
 
typedef struct _php_conv php_conv
 
typedef php_conv_err_t(* php_conv_convert_func) (php_conv *, const char **, size_t *, char **, size_t *)
 
typedef void(* php_conv_dtor_func) (php_conv *)
 
typedef struct _php_conv_base64_encode php_conv_base64_encode
 
typedef struct _php_conv_base64_decode php_conv_base64_decode
 
typedef struct _php_conv_qprint_encode php_conv_qprint_encode
 
typedef struct _php_conv_qprint_decode php_conv_qprint_decode
 
typedef struct _php_convert_filter php_convert_filter
 
typedef struct _php_consumed_filter_data php_consumed_filter_data
 
typedef enum _php_chunked_filter_state php_chunked_filter_state
 
typedef struct _php_chunked_filter_data php_chunked_filter_data
 

Enumerations

enum  _php_conv_err_t {
  PHP_CONV_ERR_SUCCESS = SUCCESS , PHP_CONV_ERR_UNKNOWN , PHP_CONV_ERR_TOO_BIG , PHP_CONV_ERR_INVALID_SEQ ,
  PHP_CONV_ERR_UNEXPECTED_EOS , PHP_CONV_ERR_EXISTS , PHP_CONV_ERR_MORE , PHP_CONV_ERR_ALLOC ,
  PHP_CONV_ERR_NOT_FOUND
}
 
enum  _php_chunked_filter_state {
  CHUNK_SIZE_START , CHUNK_SIZE , CHUNK_SIZE_EXT , CHUNK_SIZE_CR ,
  CHUNK_SIZE_LF , CHUNK_BODY , CHUNK_BODY_CR , CHUNK_BODY_LF ,
  CHUNK_TRAILER , CHUNK_ERROR
}
 

Functions

 PHP_MINIT_FUNCTION (standard_filters)
 
 PHP_MSHUTDOWN_FUNCTION (standard_filters)
 

Macro Definition Documentation

◆ bmask

#define bmask ( a)
Value:
(0xffff >> (16 - a))
$obj a
Definition test.php:84

Definition at line 488 of file filters.c.

◆ CONSUME_CHAR

#define CONSUME_CHAR ( ps,
icnt,
lb_ptr,
lb_cnt )
Value:
if ((lb_ptr) < (lb_cnt)) { \
(lb_ptr)++; \
} else { \
(lb_cnt) = (lb_ptr) = 0; \
--(icnt); \
(ps)++; \
}

Definition at line 633 of file filters.c.

◆ GET_BOOL_PROP

#define GET_BOOL_PROP ( ht,
var,
fldname )
Value:
php_conv_get_bool_prop_ex(ht, &var, fldname, sizeof(fldname))
HashTable * ht
Definition ffi.c:4838

Definition at line 1150 of file filters.c.

◆ GET_INT_PROP

#define GET_INT_PROP ( ht,
var,
fldname )
Value:
php_conv_get_int_prop_ex(ht, &var, fldname, sizeof(fldname))

Definition at line 1144 of file filters.c.

◆ GET_STR_PROP

#define GET_STR_PROP ( ht,
var,
var_len,
fldname,
persistent )
Value:
php_conv_get_string_prop_ex(ht, &var, &var_len, fldname, sizeof(fldname), persistent)
ffi persistent
Definition ffi.c:3633

Definition at line 1141 of file filters.c.

◆ GET_UINT_PROP

#define GET_UINT_PROP ( ht,
var,
fldname )
Value:
php_conv_get_uint_prop_ex(ht, &var, fldname, sizeof(fldname))

Definition at line 1147 of file filters.c.

◆ NEXT_CHAR

#define NEXT_CHAR ( ps,
icnt,
lb_ptr,
lb_cnt,
lbchars )
Value:
((lb_ptr) < (lb_cnt) ? (lbchars)[(lb_ptr)] : *(ps))

Definition at line 630 of file filters.c.

◆ PHP_CONV_BASE64_DECODE

#define PHP_CONV_BASE64_DECODE   2

Definition at line 1072 of file filters.c.

◆ PHP_CONV_BASE64_ENCODE

#define PHP_CONV_BASE64_ENCODE   1

Definition at line 1071 of file filters.c.

◆ php_conv_convert

#define php_conv_convert ( a,
b,
c,
d,
e )
Value:
((php_conv *)(a))->convert_op((php_conv *)(a), (b), (c), (d), (e))
struct _php_conv php_conv
Definition filters.c:180

Definition at line 190 of file filters.c.

◆ php_conv_dtor

#define php_conv_dtor ( a)
Value:
((php_conv *)a)->dtor((a))

Definition at line 191 of file filters.c.

◆ PHP_CONV_QPRINT_DECODE

#define PHP_CONV_QPRINT_DECODE   4

Definition at line 1074 of file filters.c.

◆ PHP_CONV_QPRINT_ENCODE

#define PHP_CONV_QPRINT_ENCODE   3

Definition at line 1073 of file filters.c.

◆ PHP_CONV_QPRINT_OPT_BINARY

#define PHP_CONV_QPRINT_OPT_BINARY   0x00000001

Definition at line 616 of file filters.c.

◆ PHP_CONV_QPRINT_OPT_FORCE_ENCODE_FIRST

#define PHP_CONV_QPRINT_OPT_FORCE_ENCODE_FIRST   0x00000002

Definition at line 617 of file filters.c.

Typedef Documentation

◆ php_chunked_filter_data

◆ php_chunked_filter_state

◆ php_consumed_filter_data

◆ php_conv

typedef struct _php_conv php_conv

Definition at line 180 of file filters.c.

◆ php_conv_base64_decode

◆ php_conv_base64_encode

◆ php_conv_convert_func

typedef php_conv_err_t(* php_conv_convert_func) (php_conv *, const char **, size_t *, char **, size_t *)

Definition at line 182 of file filters.c.

◆ php_conv_dtor_func

typedef void(* php_conv_dtor_func) (php_conv *)

Definition at line 183 of file filters.c.

◆ php_conv_err_t

◆ php_conv_qprint_decode

◆ php_conv_qprint_encode

◆ php_convert_filter

Enumeration Type Documentation

◆ _php_chunked_filter_state

Enumerator
CHUNK_SIZE_START 
CHUNK_SIZE 
CHUNK_SIZE_EXT 
CHUNK_SIZE_CR 
CHUNK_SIZE_LF 
CHUNK_BODY 
CHUNK_BODY_CR 
CHUNK_BODY_LF 
CHUNK_TRAILER 
CHUNK_ERROR 

Definition at line 1686 of file filters.c.

◆ _php_conv_err_t

Enumerator
PHP_CONV_ERR_SUCCESS 
PHP_CONV_ERR_UNKNOWN 
PHP_CONV_ERR_TOO_BIG 
PHP_CONV_ERR_INVALID_SEQ 
PHP_CONV_ERR_UNEXPECTED_EOS 
PHP_CONV_ERR_EXISTS 
PHP_CONV_ERR_MORE 
PHP_CONV_ERR_ALLOC 
PHP_CONV_ERR_NOT_FOUND 

Definition at line 168 of file filters.c.

Function Documentation

◆ PHP_MINIT_FUNCTION()

PHP_MINIT_FUNCTION ( standard_filters )

Definition at line 1913 of file filters.c.

◆ PHP_MSHUTDOWN_FUNCTION()

PHP_MSHUTDOWN_FUNCTION ( standard_filters )

Definition at line 1928 of file filters.c.

Variable Documentation

◆ factory

const php_stream_filter_factory* factory

Definition at line 1900 of file filters.c.

◆ ops

Definition at line 1899 of file filters.c.