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

Go to the source code of this file.

Macros

#define phpext_filter_ptr   &filter_module_entry
 
#define PHP_FILTER_VERSION   PHP_VERSION
 
#define IF_G(v)
 
#define PHP_INPUT_FILTER_PARAM_DECL   zval *value, zend_long flags, zval *option_array, char *charset
 

Functions

 PHP_MINIT_FUNCTION (filter)
 
 PHP_MSHUTDOWN_FUNCTION (filter)
 
 PHP_RINIT_FUNCTION (filter)
 
 PHP_RSHUTDOWN_FUNCTION (filter)
 
 PHP_MINFO_FUNCTION (filter)
 
void php_filter_int (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_boolean (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_float (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_validate_regexp (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_validate_domain (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_validate_url (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_validate_email (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_validate_ip (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_validate_mac (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_string (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_encoded (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_special_chars (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_full_special_chars (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_unsafe_raw (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_email (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_url (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_number_int (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_number_float (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_add_slashes (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_callback (PHP_INPUT_FILTER_PARAM_DECL)
 

Variables

zend_module_entry filter_module_entry
 
zval post_array
 
zval get_array
 
zval cookie_array
 
zval env_array
 
zval server_array
 
zend_long default_filter
 
zend_long default_filter_flags
 

Macro Definition Documentation

◆ IF_G

#define IF_G ( v)
Value:
uint32_t v
Definition cdf.c:1237
#define ZEND_MODULE_GLOBALS_ACCESSOR(module_name, v)
Definition zend_API.h:274

Definition at line 56 of file php_filter.h.

◆ PHP_FILTER_VERSION

#define PHP_FILTER_VERSION   PHP_VERSION

Definition at line 31 of file php_filter.h.

◆ PHP_INPUT_FILTER_PARAM_DECL

#define PHP_INPUT_FILTER_PARAM_DECL   zval *value, zend_long flags, zval *option_array, char *charset

Definition at line 58 of file php_filter.h.

◆ phpext_filter_ptr

#define phpext_filter_ptr   &filter_module_entry

Definition at line 25 of file php_filter.h.

Function Documentation

◆ php_filter_add_slashes()

void php_filter_add_slashes ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 361 of file sanitizing_filters.c.

◆ php_filter_boolean()

void php_filter_boolean ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 273 of file logical_filters.c.

◆ php_filter_callback()

void php_filter_callback ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 19 of file callback_filter.c.

◆ php_filter_email()

void php_filter_email ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 297 of file sanitizing_filters.c.

◆ php_filter_encoded()

void php_filter_encoded ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 214 of file sanitizing_filters.c.

◆ php_filter_float()

void php_filter_float ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 342 of file logical_filters.c.

◆ php_filter_full_special_chars()

void php_filter_full_special_chars ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 245 of file sanitizing_filters.c.

◆ php_filter_int()

void php_filter_int ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 197 of file logical_filters.c.

◆ php_filter_number_float()

void php_filter_number_float ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 337 of file sanitizing_filters.c.

◆ php_filter_number_int()

void php_filter_number_int ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 324 of file sanitizing_filters.c.

◆ php_filter_special_chars()

void php_filter_special_chars ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 224 of file sanitizing_filters.c.

◆ php_filter_string()

void php_filter_string ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 170 of file sanitizing_filters.c.

◆ php_filter_unsafe_raw()

void php_filter_unsafe_raw ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 264 of file sanitizing_filters.c.

◆ php_filter_url()

void php_filter_url ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 310 of file sanitizing_filters.c.

◆ php_filter_validate_domain()

void php_filter_validate_domain ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 559 of file logical_filters.c.

◆ php_filter_validate_email()

void php_filter_validate_email ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 656 of file logical_filters.c.

◆ php_filter_validate_ip()

void php_filter_validate_ip ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 982 of file logical_filters.c.

◆ php_filter_validate_mac()

void php_filter_validate_mac ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 1037 of file logical_filters.c.

◆ php_filter_validate_regexp()

void php_filter_validate_regexp ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 472 of file logical_filters.c.

◆ php_filter_validate_url()

void php_filter_validate_url ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 591 of file logical_filters.c.

◆ PHP_MINFO_FUNCTION()

PHP_MINFO_FUNCTION ( filter )

Definition at line 200 of file filter.c.

◆ PHP_MINIT_FUNCTION()

PHP_MINIT_FUNCTION ( filter )

Definition at line 155 of file filter.c.

◆ PHP_MSHUTDOWN_FUNCTION()

PHP_MSHUTDOWN_FUNCTION ( filter )

Definition at line 170 of file filter.c.

◆ PHP_RINIT_FUNCTION()

PHP_RINIT_FUNCTION ( filter )

◆ PHP_RSHUTDOWN_FUNCTION()

PHP_RSHUTDOWN_FUNCTION ( filter )

Definition at line 185 of file filter.c.

Variable Documentation

◆ cookie_array

zval cookie_array

Definition at line 42 of file php_filter.h.

◆ default_filter

zend_long default_filter

Definition at line 48 of file php_filter.h.

◆ default_filter_flags

zend_long default_filter_flags

Definition at line 49 of file php_filter.h.

◆ env_array

zval env_array

Definition at line 43 of file php_filter.h.

◆ filter_module_entry

zend_module_entry filter_module_entry
extern

Definition at line 80 of file filter.c.

◆ get_array

zval get_array

Definition at line 41 of file php_filter.h.

◆ post_array

zval post_array

Definition at line 40 of file php_filter.h.

◆ server_array

zval server_array

Definition at line 44 of file php_filter.h.