Back to index

php5  5.3.10
Defines
filter_private.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define FILTER_FLAG_NONE   0x0000
#define FILTER_REQUIRE_ARRAY   0x1000000
#define FILTER_REQUIRE_SCALAR   0x2000000
#define FILTER_FORCE_ARRAY   0x4000000
#define FILTER_NULL_ON_FAILURE   0x8000000
#define FILTER_FLAG_ALLOW_OCTAL   0x0001
#define FILTER_FLAG_ALLOW_HEX   0x0002
#define FILTER_FLAG_STRIP_LOW   0x0004
#define FILTER_FLAG_STRIP_HIGH   0x0008
#define FILTER_FLAG_ENCODE_LOW   0x0010
#define FILTER_FLAG_ENCODE_HIGH   0x0020
#define FILTER_FLAG_ENCODE_AMP   0x0040
#define FILTER_FLAG_NO_ENCODE_QUOTES   0x0080
#define FILTER_FLAG_EMPTY_STRING_NULL   0x0100
#define FILTER_FLAG_STRIP_BACKTICK   0x0200
#define FILTER_FLAG_ALLOW_FRACTION   0x1000
#define FILTER_FLAG_ALLOW_THOUSAND   0x2000
#define FILTER_FLAG_ALLOW_SCIENTIFIC   0x4000
#define FILTER_FLAG_SCHEME_REQUIRED   0x010000
#define FILTER_FLAG_HOST_REQUIRED   0x020000
#define FILTER_FLAG_PATH_REQUIRED   0x040000
#define FILTER_FLAG_QUERY_REQUIRED   0x080000
#define FILTER_FLAG_IPV4   0x100000
#define FILTER_FLAG_IPV6   0x200000
#define FILTER_FLAG_NO_RES_RANGE   0x400000
#define FILTER_FLAG_NO_PRIV_RANGE   0x800000
#define FILTER_VALIDATE_INT   0x0101
#define FILTER_VALIDATE_BOOLEAN   0x0102
#define FILTER_VALIDATE_FLOAT   0x0103
#define FILTER_VALIDATE_REGEXP   0x0110
#define FILTER_VALIDATE_URL   0x0111
#define FILTER_VALIDATE_EMAIL   0x0112
#define FILTER_VALIDATE_IP   0x0113
#define FILTER_VALIDATE_LAST   0x0113
#define FILTER_VALIDATE_ALL   0x0100
#define FILTER_DEFAULT   0x0204
#define FILTER_UNSAFE_RAW   0x0204
#define FILTER_SANITIZE_STRING   0x0201
#define FILTER_SANITIZE_ENCODED   0x0202
#define FILTER_SANITIZE_SPECIAL_CHARS   0x0203
#define FILTER_SANITIZE_EMAIL   0x0205
#define FILTER_SANITIZE_URL   0x0206
#define FILTER_SANITIZE_NUMBER_INT   0x0207
#define FILTER_SANITIZE_NUMBER_FLOAT   0x0208
#define FILTER_SANITIZE_MAGIC_QUOTES   0x0209
#define FILTER_SANITIZE_FULL_SPECIAL_CHARS   0x020a
#define FILTER_SANITIZE_LAST   0x020a
#define FILTER_SANITIZE_ALL   0x0200
#define FILTER_CALLBACK   0x0400
#define PHP_FILTER_ID_EXISTS(id)
#define RETURN_VALIDATION_FAILED
#define PHP_FILTER_TRIM_DEFAULT(p, len)
#define PHP_FILTER_GET_LONG_OPT(zv, opt)

Define Documentation

#define FILTER_CALLBACK   0x0400

Definition at line 86 of file filter_private.h.

#define FILTER_DEFAULT   0x0204

Definition at line 70 of file filter_private.h.

#define FILTER_FLAG_ALLOW_FRACTION   0x1000

Definition at line 44 of file filter_private.h.

#define FILTER_FLAG_ALLOW_HEX   0x0002

Definition at line 33 of file filter_private.h.

#define FILTER_FLAG_ALLOW_OCTAL   0x0001

Definition at line 32 of file filter_private.h.

#define FILTER_FLAG_ALLOW_SCIENTIFIC   0x4000

Definition at line 46 of file filter_private.h.

#define FILTER_FLAG_ALLOW_THOUSAND   0x2000

Definition at line 45 of file filter_private.h.

#define FILTER_FLAG_EMPTY_STRING_NULL   0x0100

Definition at line 41 of file filter_private.h.

#define FILTER_FLAG_ENCODE_AMP   0x0040

Definition at line 39 of file filter_private.h.

#define FILTER_FLAG_ENCODE_HIGH   0x0020

Definition at line 38 of file filter_private.h.

#define FILTER_FLAG_ENCODE_LOW   0x0010

Definition at line 37 of file filter_private.h.

#define FILTER_FLAG_HOST_REQUIRED   0x020000

Definition at line 49 of file filter_private.h.

#define FILTER_FLAG_IPV4   0x100000

Definition at line 53 of file filter_private.h.

#define FILTER_FLAG_IPV6   0x200000

Definition at line 54 of file filter_private.h.

#define FILTER_FLAG_NO_ENCODE_QUOTES   0x0080

Definition at line 40 of file filter_private.h.

#define FILTER_FLAG_NO_PRIV_RANGE   0x800000

Definition at line 56 of file filter_private.h.

#define FILTER_FLAG_NO_RES_RANGE   0x400000

Definition at line 55 of file filter_private.h.

#define FILTER_FLAG_NONE   0x0000

Definition at line 24 of file filter_private.h.

#define FILTER_FLAG_PATH_REQUIRED   0x040000

Definition at line 50 of file filter_private.h.

#define FILTER_FLAG_QUERY_REQUIRED   0x080000

Definition at line 51 of file filter_private.h.

#define FILTER_FLAG_SCHEME_REQUIRED   0x010000

Definition at line 48 of file filter_private.h.

#define FILTER_FLAG_STRIP_BACKTICK   0x0200

Definition at line 42 of file filter_private.h.

#define FILTER_FLAG_STRIP_HIGH   0x0008

Definition at line 36 of file filter_private.h.

#define FILTER_FLAG_STRIP_LOW   0x0004

Definition at line 35 of file filter_private.h.

#define FILTER_FORCE_ARRAY   0x4000000

Definition at line 29 of file filter_private.h.

#define FILTER_NULL_ON_FAILURE   0x8000000

Definition at line 30 of file filter_private.h.

#define FILTER_REQUIRE_ARRAY   0x1000000

Definition at line 26 of file filter_private.h.

#define FILTER_REQUIRE_SCALAR   0x2000000

Definition at line 27 of file filter_private.h.

#define FILTER_SANITIZE_ALL   0x0200

Definition at line 84 of file filter_private.h.

#define FILTER_SANITIZE_EMAIL   0x0205

Definition at line 76 of file filter_private.h.

#define FILTER_SANITIZE_ENCODED   0x0202

Definition at line 74 of file filter_private.h.

Definition at line 81 of file filter_private.h.

#define FILTER_SANITIZE_LAST   0x020a

Definition at line 82 of file filter_private.h.

#define FILTER_SANITIZE_MAGIC_QUOTES   0x0209

Definition at line 80 of file filter_private.h.

#define FILTER_SANITIZE_NUMBER_FLOAT   0x0208

Definition at line 79 of file filter_private.h.

#define FILTER_SANITIZE_NUMBER_INT   0x0207

Definition at line 78 of file filter_private.h.

#define FILTER_SANITIZE_SPECIAL_CHARS   0x0203

Definition at line 75 of file filter_private.h.

#define FILTER_SANITIZE_STRING   0x0201

Definition at line 73 of file filter_private.h.

#define FILTER_SANITIZE_URL   0x0206

Definition at line 77 of file filter_private.h.

#define FILTER_UNSAFE_RAW   0x0204

Definition at line 71 of file filter_private.h.

#define FILTER_VALIDATE_ALL   0x0100

Definition at line 68 of file filter_private.h.

#define FILTER_VALIDATE_BOOLEAN   0x0102

Definition at line 59 of file filter_private.h.

#define FILTER_VALIDATE_EMAIL   0x0112

Definition at line 64 of file filter_private.h.

#define FILTER_VALIDATE_FLOAT   0x0103

Definition at line 60 of file filter_private.h.

#define FILTER_VALIDATE_INT   0x0101

Definition at line 58 of file filter_private.h.

#define FILTER_VALIDATE_IP   0x0113

Definition at line 65 of file filter_private.h.

#define FILTER_VALIDATE_LAST   0x0113

Definition at line 66 of file filter_private.h.

#define FILTER_VALIDATE_REGEXP   0x0110

Definition at line 62 of file filter_private.h.

#define FILTER_VALIDATE_URL   0x0111

Definition at line 63 of file filter_private.h.

#define PHP_FILTER_GET_LONG_OPT (   zv,
  opt 
)
Value:
{ \
       if (Z_TYPE_PP(zv) != IS_LONG) {                                                                      \
              zval ___tmp = **zv;                                                                                 \
              zval_copy_ctor(&___tmp);                                                                                    \
              convert_to_long(&___tmp);                                                                                   \
              opt = Z_LVAL(___tmp);                                                                                  \
       } else {                                                                                                     \
              opt = Z_LVAL_PP(zv);                                                                        \
       }                                                                                                            \
}

Definition at line 115 of file filter_private.h.

#define PHP_FILTER_ID_EXISTS (   id)
Value:

Definition at line 88 of file filter_private.h.

#define PHP_FILTER_TRIM_DEFAULT (   p,
  len 
)
Value:
{ \
       while ((len > 0)  && (*p == ' ' || *p == '\t' || *p == '\r' || *p == '\v' || *p == '\n')) { \
              p++; \
              len--; \
       } \
       if (len < 1) { \
              RETURN_VALIDATION_FAILED \
       } \
       while (p[len-1] == ' ' || p[len-1] == '\t' || p[len-1] == '\r' || p[len-1] == '\v' || p[len-1] == '\n') { \
              len--; \
       } \
}

Definition at line 102 of file filter_private.h.

Value:
zval_dtor(value);    \
       if (flags & FILTER_NULL_ON_FAILURE) {     \
              ZVAL_NULL(value);    \
       } else {      \
              ZVAL_FALSE(value);   \
       }      \
       return;       \

Definition at line 93 of file filter_private.h.