php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
#include <ctype.h>
#include "zend.h"
#include "zend_operators.h"
#include "zend_variables.h"
#include "zend_globals.h"
#include "zend_list.h"
#include "zend_API.h"
#include "zend_strtod.h"
#include "zend_exceptions.h"
#include "zend_closures.h"
#include <locale.h>
Go to the source code of this file.
Macros | |
#define | zend_tolower(c) |
#define | TYPE_PAIR(t1, t2) |
#define | convert_object_to_type(op, dst, ctype) |
#define | ZEND_TRY_BINARY_OP1_OBJECT_OPERATION(opcode) |
#define | ZEND_TRY_BINARY_OP2_OBJECT_OPERATION(opcode) |
#define | ZEND_TRY_BINARY_OBJECT_OPERATION(opcode) |
#define | ZEND_TRY_UNARY_OBJECT_OPERATION(opcode) |
#define | convert_op1_op2_long(op1, op1_lval, op2, op2_lval, result, opcode, sigil) |
#define | TYPES_NOT_HANDLED 1 |
#define | DIV_BY_ZERO 2 |
#define | LOWER_CASE 1 |
#define | UPPER_CASE 2 |
#define | NUMERIC 3 |
Variables | |
ZEND_API const unsigned char | zend_tolower_map [256] |
ZEND_API const unsigned char | zend_toupper_map [256] |
Definition at line 232 of file zend_operators.c.
Definition at line 492 of file zend_operators.c.
#define DIV_BY_ZERO 2 |
Definition at line 1394 of file zend_operators.c.
#define LOWER_CASE 1 |
Definition at line 2504 of file zend_operators.c.
#define NUMERIC 3 |
Definition at line 2506 of file zend_operators.c.
Definition at line 61 of file zend_operators.c.
#define TYPES_NOT_HANDLED 1 |
Definition at line 1393 of file zend_operators.c.
#define UPPER_CASE 2 |
Definition at line 2505 of file zend_operators.c.
#define zend_tolower | ( | c | ) |
Definition at line 58 of file zend_operators.c.
#define ZEND_TRY_BINARY_OBJECT_OPERATION | ( | opcode | ) |
Definition at line 480 of file zend_operators.c.
#define ZEND_TRY_BINARY_OP1_OBJECT_OPERATION | ( | opcode | ) |
Definition at line 465 of file zend_operators.c.
#define ZEND_TRY_BINARY_OP2_OBJECT_OPERATION | ( | opcode | ) |
Definition at line 473 of file zend_operators.c.
#define ZEND_TRY_UNARY_OBJECT_OPERATION | ( | opcode | ) |
Definition at line 485 of file zend_operators.c.
ZEND_API void ZEND_FASTCALL _convert_to_string | ( | zval * | op | ) |
Definition at line 728 of file zend_operators.c.
ZEND_API uint8_t ZEND_FASTCALL _is_numeric_string_ex | ( | const char * | str, |
size_t | length, | ||
zend_long * | lval, | ||
double * | dval, | ||
bool | allow_errors, | ||
int * | oflow_info, | ||
bool * | trailing_data ) |
Checks whether the string "str" with length "length" is numeric. The value of allow_errors determines whether it's required to be entirely numeric, or just its prefix. Leading whitespace is allowed.
The function returns 0 if the string did not contain a valid number; IS_LONG if it contained a number that fits within the range of a long; or IS_DOUBLE if the number was out of long range or contained a decimal point/exponent. The number's value is returned into the respective pointer, *lval or *dval, if that pointer is not NULL.
This variant also gives information if a string that represents an integer could not be represented as such due to overflow. It writes 1 to oflow_info if the integer is larger than ZEND_LONG_MAX and -1 if it's smaller than ZEND_LONG_MIN.
Definition at line 3519 of file zend_operators.c.
ZEND_API bool ZEND_FASTCALL _try_convert_to_string | ( | zval * | op | ) |
Definition at line 782 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL add_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 1144 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL bitwise_and_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 1724 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL bitwise_not_function | ( | zval * | result, |
zval * | op1 ) |
Definition at line 1591 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL bitwise_or_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 1642 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL bitwise_xor_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 1806 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL boolean_not_function | ( | zval * | result, |
zval * | op1 ) |
Definition at line 1566 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL boolean_xor_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 1516 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL compare_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 2199 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL concat_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 1961 of file zend_operators.c.
ZEND_API void ZEND_FASTCALL convert_scalar_to_number | ( | zval * | op | ) |
Definition at line 242 of file zend_operators.c.
ZEND_API void ZEND_FASTCALL convert_to_array | ( | zval * | op | ) |
Definition at line 805 of file zend_operators.c.
ZEND_API void ZEND_FASTCALL convert_to_boolean | ( | zval * | op | ) |
Definition at line 663 of file zend_operators.c.
ZEND_API void ZEND_FASTCALL convert_to_double | ( | zval * | op | ) |
Definition at line 597 of file zend_operators.c.
ZEND_API void ZEND_FASTCALL convert_to_long | ( | zval * | op | ) |
Definition at line 540 of file zend_operators.c.
ZEND_API void ZEND_FASTCALL convert_to_null | ( | zval * | op | ) |
Definition at line 656 of file zend_operators.c.
ZEND_API void ZEND_FASTCALL convert_to_object | ( | zval * | op | ) |
Definition at line 851 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL decrement_function | ( | zval * | op1 | ) |
Definition at line 2711 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL div_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 1437 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL increment_function | ( | zval * | op1 | ) |
Definition at line 2626 of file zend_operators.c.
ZEND_API bool ZEND_FASTCALL instanceof_function_slow | ( | const zend_class_entry * | instance_ce, |
const zend_class_entry * | ce ) |
Definition at line 2475 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL is_equal_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 2430 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL is_identical_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 2416 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL is_not_equal_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 2437 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL is_not_identical_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 2423 of file zend_operators.c.
ZEND_API uint8_t ZEND_FASTCALL is_numeric_str_function | ( | const zend_string * | str, |
zend_long * | lval, | ||
double * | dval ) |
Definition at line 3513 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL is_smaller_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 2444 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL is_smaller_or_equal_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 2451 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL mod_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 1482 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL mul_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 1278 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL numeric_compare_function | ( | zval * | op1, |
zval * | op2 ) |
Definition at line 2188 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL pow_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 1359 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL shift_left_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 1888 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL shift_right_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 1925 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL string_case_compare_function | ( | zval * | op1, |
zval * | op2 ) |
Definition at line 2153 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL string_compare_function | ( | zval * | op1, |
zval * | op2 ) |
Definition at line 2131 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL string_compare_function_ex | ( | zval * | op1, |
zval * | op2, | ||
bool | case_insensitive ) |
Definition at line 2112 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL string_locale_compare_function | ( | zval * | op1, |
zval * | op2 ) |
Definition at line 2175 of file zend_operators.c.
ZEND_API zend_result ZEND_FASTCALL sub_function | ( | zval * | result, |
zval * | op1, | ||
zval * | op2 ) |
Definition at line 1209 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL zend_atoi | ( | const char * | str, |
size_t | str_len ) |
Deprecated in favor of ZEND_STRTOL()
Definition at line 226 of file zend_operators.c.
ZEND_API zend_long ZEND_FASTCALL zend_atol | ( | const char * | str, |
size_t | str_len ) |
Deprecated in favor of ZEND_STRTOL()
Definition at line 221 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL zend_binary_strcasecmp | ( | const char * | s1, |
size_t | len1, | ||
const char * | s2, | ||
size_t | len2 ) |
Definition at line 3189 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL zend_binary_strcasecmp_l | ( | const char * | s1, |
size_t | len1, | ||
const char * | s2, | ||
size_t | len2 ) |
Definition at line 3232 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL zend_binary_strcmp | ( | const char * | s1, |
size_t | len1, | ||
const char * | s2, | ||
size_t | len2 ) |
Definition at line 3157 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL zend_binary_strncasecmp | ( | const char * | s1, |
size_t | len1, | ||
const char * | s2, | ||
size_t | len2, | ||
size_t | length ) |
Definition at line 3211 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL zend_binary_strncasecmp_l | ( | const char * | s1, |
size_t | len1, | ||
const char * | s2, | ||
size_t | len2, | ||
size_t | length ) |
Definition at line 3254 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL zend_binary_strncmp | ( | const char * | s1, |
size_t | len1, | ||
const char * | s2, | ||
size_t | len2, | ||
size_t | length ) |
Definition at line 3173 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL zend_binary_zval_strcmp | ( | zval * | s1, |
zval * | s2 ) |
Definition at line 3275 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL zend_binary_zval_strncmp | ( | zval * | s1, |
zval * | s2, | ||
zval * | s3 ) |
Definition at line 3281 of file zend_operators.c.
ZEND_API bool ZEND_FASTCALL zend_class_implements_interface | ( | const zend_class_entry * | class_ce, |
const zend_class_entry * | interface_ce ) |
Definition at line 2458 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL zend_compare | ( | zval * | op1, |
zval * | op2 ) |
Definition at line 2250 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL zend_compare_arrays | ( | zval * | a1, |
zval * | a2 ) |
Definition at line 3398 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL zend_compare_objects | ( | zval * | o1, |
zval * | o2 ) |
Definition at line 3404 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL zend_compare_symbol_tables | ( | HashTable * | ht1, |
HashTable * | ht2 ) |
Definition at line 3392 of file zend_operators.c.
ZEND_API zend_string *ZEND_FASTCALL zend_double_to_str | ( | double | num | ) |
Definition at line 3502 of file zend_operators.c.
ZEND_API zend_long ZEND_FASTCALL zend_dval_to_lval_slow | ( | double | d | ) |
Definition at line 3755 of file zend_operators.c.
ZEND_API zend_string *ZEND_FASTCALL zend_i64_to_str | ( | int64_t | num | ) |
Definition at line 3489 of file zend_operators.c.
Definition at line 892 of file zend_operators.c.
ZEND_API void ZEND_COLD zend_incompatible_string_to_long_error | ( | const zend_string * | s | ) |
Definition at line 896 of file zend_operators.c.
ZEND_API bool ZEND_FASTCALL zend_is_identical | ( | const zval * | op1, |
const zval * | op2 ) |
Definition at line 2387 of file zend_operators.c.
ZEND_API bool ZEND_FASTCALL zend_is_true | ( | const zval * | op | ) |
Definition at line 2819 of file zend_operators.c.
ZEND_API zend_string *ZEND_FASTCALL zend_long_to_str | ( | zend_long | num | ) |
Definition at line 3418 of file zend_operators.c.
ZEND_API const char *ZEND_FASTCALL zend_memnrstr_ex | ( | const char * | haystack, |
const char * | needle, | ||
size_t | needle_len, | ||
const char * | end ) |
Definition at line 3717 of file zend_operators.c.
ZEND_API const char *ZEND_FASTCALL zend_memnstr_ex | ( | const char * | haystack, |
const char * | needle, | ||
size_t | needle_len, | ||
const char * | end ) |
Definition at line 3683 of file zend_operators.c.
ZEND_API bool ZEND_FASTCALL zend_object_is_true | ( | const zval * | op | ) |
Definition at line 2825 of file zend_operators.c.
Definition at line 2917 of file zend_operators.c.
ZEND_API void ZEND_FASTCALL zend_str_tolower | ( | char * | str, |
size_t | length ) |
Definition at line 2998 of file zend_operators.c.
ZEND_API char *ZEND_FASTCALL zend_str_tolower_copy | ( | char * | dest, |
const char * | source, | ||
size_t | length ) |
Definition at line 2970 of file zend_operators.c.
ZEND_API char *ZEND_FASTCALL zend_str_tolower_dup | ( | const char * | source, |
size_t | length ) |
Definition at line 2986 of file zend_operators.c.
ZEND_API char *ZEND_FASTCALL zend_str_tolower_dup_ex | ( | const char * | source, |
size_t | length ) |
Definition at line 3011 of file zend_operators.c.
ZEND_API void ZEND_FASTCALL zend_str_toupper | ( | char * | str, |
size_t | length ) |
Definition at line 3004 of file zend_operators.c.
ZEND_API char *ZEND_FASTCALL zend_str_toupper_copy | ( | char * | dest, |
const char * | source, | ||
size_t | length ) |
Definition at line 2978 of file zend_operators.c.
ZEND_API char *ZEND_FASTCALL zend_str_toupper_dup | ( | const char * | source, |
size_t | length ) |
Definition at line 2992 of file zend_operators.c.
ZEND_API char *ZEND_FASTCALL zend_str_toupper_dup_ex | ( | const char * | source, |
size_t | length ) |
Definition at line 3035 of file zend_operators.c.
ZEND_API bool zend_string_only_has_ascii_alphanumeric | ( | const zend_string * | str | ) |
Definition at line 2508 of file zend_operators.c.
ZEND_API zend_string *ZEND_FASTCALL zend_string_tolower_ex | ( | zend_string * | str, |
bool | persistent ) |
Definition at line 3059 of file zend_operators.c.
ZEND_API zend_string *ZEND_FASTCALL zend_string_toupper_ex | ( | zend_string * | str, |
bool | persistent ) |
Definition at line 3108 of file zend_operators.c.
ZEND_API zend_string *ZEND_FASTCALL zend_u64_to_str | ( | uint64_t | num | ) |
Definition at line 3476 of file zend_operators.c.
ZEND_API zend_string *ZEND_FASTCALL zend_ulong_to_str | ( | zend_ulong | num | ) |
Definition at line 3432 of file zend_operators.c.
Definition at line 2837 of file zend_operators.c.
ZEND_API int ZEND_FASTCALL zendi_smart_strcmp | ( | zend_string * | s1, |
zend_string * | s2 ) |
Definition at line 3335 of file zend_operators.c.
ZEND_API bool ZEND_FASTCALL zendi_smart_streq | ( | zend_string * | s1, |
zend_string * | s2 ) |
Definition at line 3287 of file zend_operators.c.
ZEND_API double ZEND_FASTCALL zval_get_double_func | ( | const zval * | op | ) |
Definition at line 971 of file zend_operators.c.
ZEND_API zend_long ZEND_FASTCALL zval_get_long_func | ( | const zval * | op, |
bool | is_strict ) |
Definition at line 901 of file zend_operators.c.
ZEND_API zend_string *ZEND_FASTCALL zval_get_string_func | ( | zval * | op | ) |
Definition at line 1051 of file zend_operators.c.
ZEND_API zend_long ZEND_FASTCALL zval_try_get_long | ( | const zval * | op, |
bool * | failed ) |
Definition at line 456 of file zend_operators.c.
ZEND_API zend_string *ZEND_FASTCALL zval_try_get_string_func | ( | zval * | op | ) |
Definition at line 1057 of file zend_operators.c.
ZEND_API const unsigned char zend_tolower_map[256] |
Definition at line 136 of file zend_operators.c.
ZEND_API const unsigned char zend_toupper_map[256] |
Definition at line 155 of file zend_operators.c.