/php-src/Zend/ |
H A D | zend_operators.h | 574 Z_LVAL_P(op1)++; in fast_long_increment_function() 637 Z_LVAL_P(op1)--; in fast_long_decrement_function() 661 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function() 679 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function() 699 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function() 722 && (Z_LVAL_P(op1) & LONG_SIGN_MASK) != ((Z_LVAL_P(op1) + Z_LVAL_P(op2)) & LONG_SIGN_MASK))) { in fast_long_add_function() 725 ZVAL_LONG(result, Z_LVAL_P(op1) + Z_LVAL_P(op2)); in fast_long_add_function() 749 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function() 803 ZVAL_LONG(result, Z_LVAL_P(op1) - Z_LVAL_P(op2)); in fast_long_sub_function() 827 return Z_LVAL_P(op1) == Z_LVAL_P(op2); in fast_equal_check_function() [all …]
|
H A D | zend_vm_trace_handlers.h | 42 if (EXPECTED(Z_LVAL_P(zv) < ZEND_LONG_MAX)) { in zend_vm_trace() 43 Z_LVAL_P(zv)++; in zend_vm_trace() 75 fprintf(f, "%s "ZEND_LONG_FMT"\n", ZSTR_VAL(key), Z_LVAL_P(val)); in zend_vm_trace_finish()
|
H A D | zend_operators.c | 1228 Z_LVAL_P(op1), Z_LVAL_P(op2), in mul_function_fast() 1296 zend_long l1 = 1, l2 = Z_LVAL_P(op1), i = Z_LVAL_P(op2); in pow_function_base() 1390 } else if (Z_LVAL_P(op2) == -1 && Z_LVAL_P(op1) == ZEND_LONG_MIN) { in div_function_base() 1395 if (Z_LVAL_P(op1) % Z_LVAL_P(op2) == 0) { /* integer */ in div_function_base() 1396 ZVAL_LONG(result, Z_LVAL_P(op1) / Z_LVAL_P(op2)); in div_function_base() 1398 ZVAL_DOUBLE(result, ((double) Z_LVAL_P(op1)) / Z_LVAL_P(op2)); in div_function_base() 1635 ZVAL_LONG(result, Z_LVAL_P(op1) | Z_LVAL_P(op2)); in bitwise_or_function() 1717 ZVAL_LONG(result, Z_LVAL_P(op1) & Z_LVAL_P(op2)); in bitwise_and_function() 1799 ZVAL_LONG(result, Z_LVAL_P(op1) ^ Z_LVAL_P(op2)); in bitwise_xor_function() 2246 return Z_LVAL_P(op1)>Z_LVAL_P(op2)?1:(Z_LVAL_P(op1)<Z_LVAL_P(op2)?-1:0); in zend_compare() [all …]
|
H A D | zend_vm_trace_map.h | 70 …fprintf(f, ADDR_FMT" "ADDR_FMT" t %s\n", prev_addr, Z_LVAL_P(val) - prev_addr, ZSTR_VAL(prev_key)); in zend_vm_trace_init() 73 prev_addr = Z_LVAL_P(val); in zend_vm_trace_init()
|
H A D | zend_vm_execute.skl | 118 op->handler = (const void *)(uintptr_t)Z_LVAL_P(zv); 138 return zend_opcode_handler_funcs[Z_LVAL_P(zv)];
|
H A D | zend_vm_def.h | 269 ZVAL_LONG(result, Z_LVAL_P(op1) % Z_LVAL_P(op2)); 529 if (EXPECTED(Z_LVAL_P(op1) == Z_LVAL_P(op2))) { 609 if (EXPECTED(Z_LVAL_P(op1) != Z_LVAL_P(op2))) { 689 if (EXPECTED(Z_LVAL_P(op1) < Z_LVAL_P(op2))) { 754 if (EXPECTED(Z_LVAL_P(op1) <= Z_LVAL_P(op2))) { 5740 if (EXPECTED(Z_LVAL_P(op1) == Z_LVAL_P(op2))) { 9694 ZVAL_LONG(result, Z_LVAL_P(op1) + Z_LVAL_P(op2)); 9804 result = (Z_LVAL_P(op1) == Z_LVAL_P(op2)); 9828 result = (Z_LVAL_P(op1) != Z_LVAL_P(op2)); 9881 result = (Z_LVAL_P(op1) < Z_LVAL_P(op2)); [all …]
|
/php-src/ext/ctype/ |
H A D | ctype.c | 70 if (Z_LVAL_P(c) <= 255 && Z_LVAL_P(c) >= 0) { in ctype_fallback() 71 RETURN_BOOL(iswhat((int)Z_LVAL_P(c))); in ctype_fallback() 72 } else if (Z_LVAL_P(c) >= -128 && Z_LVAL_P(c) < 0) { in ctype_fallback() 73 RETURN_BOOL(iswhat((int)Z_LVAL_P(c) + 256)); in ctype_fallback() 74 } else if (Z_LVAL_P(c) >= 0) { in ctype_fallback()
|
/php-src/ext/intl/dateformat/ |
H A D | dateformat_format.c | 74 if (Z_LVAL_P(ele_value) > INT32_MAX || in internal_get_arr_ele() 75 Z_LVAL_P(ele_value) < INT32_MIN) { in internal_get_arr_ele() 78 Z_LVAL_P(ele_value), key_name); in internal_get_arr_ele() 82 result = Z_LVAL_P(ele_value); in internal_get_arr_ele()
|
H A D | dateformat_format_object.cpp | 54 zend_long lval = Z_LVAL_P(z); in valid_format() 117 dateStyle = (DateFormat::EStyle)Z_LVAL_P(z); in PHP_FUNCTION() 120 timeStyle = (DateFormat::EStyle)Z_LVAL_P(z); in PHP_FUNCTION() 132 dateStyle = timeStyle = (DateFormat::EStyle)Z_LVAL_P(format); in PHP_FUNCTION()
|
/php-src/ext/tokenizer/ |
H A D | tokenizer.c | 156 RETURN_BOOL(Z_LVAL_P(id_zval) == Z_LVAL_P(kind)); in PHP_METHOD() 176 if (Z_LVAL_P(id_zval) == Z_LVAL_P(entry)) { in PHP_METHOD() 210 zend_long id = Z_LVAL_P(id_zval); in PHP_METHOD() 223 if (Z_LVAL_P(id_zval) < 256) { in PHP_METHOD() 224 RETURN_CHAR(Z_LVAL_P(id_zval)); in PHP_METHOD() 226 const char *token_name = get_token_type_name(Z_LVAL_P(id_zval)); in PHP_METHOD()
|
/php-src/ext/gmp/ |
H A D | gmp.c | 624 mpz_set_si(gmpnumber, Z_LVAL_P(val)); in convert_to_gmp() 697 res = mpz_cmp_si(gmpnum_a, Z_LVAL_P(b_arg)); in gmp_cmp() 729 b_is_zero = (Z_LVAL_P(b_arg) == 0); in gmp_zval_binary_ui_op() 780 b_is_zero = (Z_LVAL_P(b_arg) == 0); in gmp_zval_binary_ui_op2() 1218 if (Z_LVAL_P(a_arg) < 0) { in ZEND_FUNCTION() 1288 mpz_ui_pow_ui(gmpnum_result, Z_LVAL_P(base_arg), exp); in ZEND_FUNCTION() 1765 if (Z_TYPE_P(seed) == IS_LONG && Z_LVAL_P(seed) >= 0) { in ZEND_FUNCTION() 1766 gmp_randseed_ui(GMPG(rand_state), Z_LVAL_P(seed)); in ZEND_FUNCTION() 1819 if (mpz_cmp_ui(gmpnum_max, Z_LVAL_P(min_arg)) <= 0) { in ZEND_FUNCTION() 1828 if (Z_LVAL_P(min_arg) != 0) { in ZEND_FUNCTION() [all …]
|
/php-src/ext/intl/formatter/ |
H A D | formatter_format.c | 63 formatted_len = unum_format(FORMATTER_OBJECT(nfo), (int32_t)Z_LVAL_P(number), in PHP_FUNCTION() 68 formatted_len = unum_format(FORMATTER_OBJECT(nfo), (int32_t)Z_LVAL_P(number), in PHP_FUNCTION() 79 int64_t value = (Z_TYPE_P(number) == IS_DOUBLE)?(int64_t)Z_DVAL_P(number):Z_LVAL_P(number); in PHP_FUNCTION()
|
/php-src/ext/sockets/ |
H A D | multicast.c | 89 if (Z_LVAL_P(val) < 0 || (zend_ulong)Z_LVAL_P(val) > UINT_MAX) { in php_get_if_index_from_zval() 93 *out = Z_LVAL_P(val); in php_get_if_index_from_zval() 281 if (Z_LVAL_P(arg4) < 0L || Z_LVAL_P(arg4) > 255L) { in php_do_setsockopt_ip_mcast() 285 ipv4_mcast_ttl_lback = (unsigned char) Z_LVAL_P(arg4); in php_do_setsockopt_ip_mcast() 345 if (Z_LVAL_P(arg4) < -1L || Z_LVAL_P(arg4) > 255L) { in php_do_setsockopt_ipv6_mcast() 349 ov = (int) Z_LVAL_P(arg4); in php_do_setsockopt_ipv6_mcast()
|
/php-src/ext/zend_test/ |
H A D | object_handlers.c | 51 val_1 = Z_LVAL_P(OBJ_PROP_NUM(Z_OBJ_P(op1), 0)); in donc_add() 56 val_2 = Z_LVAL_P(OBJ_PROP_NUM(Z_OBJ_P(op2), 0)); in donc_add() 68 val_1 = Z_LVAL_P(OBJ_PROP_NUM(Z_OBJ_P(op1), 0)); in donc_mul() 73 val_2 = Z_LVAL_P(OBJ_PROP_NUM(Z_OBJ_P(op2), 0)); in donc_mul()
|
/php-src/ext/hash/ |
H A D | hash_murmur.c | 46 ctx->h = (uint32_t)Z_LVAL_P(seed); in PHP_MURMUR3AInit() 103 uint32_t _seed = (uint32_t)Z_LVAL_P(seed); in PHP_MURMUR3CInit() 177 uint64_t _seed = (uint64_t)Z_LVAL_P(seed); in PHP_MURMUR3FInit()
|
H A D | hash_xxhash.c | 50 XXH32_reset(&ctx->s, (XXH32_hash_t)Z_LVAL_P(seed)); in PHP_XXH32Init() 114 XXH64_reset(&ctx->s, (XXH64_hash_t)Z_LVAL_P(seed)); in PHP_XXH64Init() 174 func_init_seed(&ctx->s, (XXH64_hash_t)Z_LVAL_P(_seed)); in _PHP_XXH3_Init()
|
/php-src/ext/mysqli/ |
H A D | mysqli_driver.c | 42 MyG(report_mode) = Z_LVAL_P(value); in driver_report_write()
|
/php-src/Zend/Optimizer/ |
H A D | compact_literals.c | 108 ret = Z_LVAL_P(pos); in add_static_slot() 359 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals() 375 ZEND_ASSERT(info[Z_LVAL_P(pos)].num_related == 2); in zend_optimizer_compact_literals() 376 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals() 399 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals() 415 ZEND_ASSERT(Z_TYPE(op_array->literals[Z_LVAL_P(pos)]) == IS_STRING && in zend_optimizer_compact_literals() 416 info[i].num_related == info[Z_LVAL_P(pos)].num_related); in zend_optimizer_compact_literals() 418 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals()
|
H A D | dfa_pass.c | 442 zend_hash_index_add(dst, Z_LVAL_P(val), &tmp); in zend_dfa_optimize_calls() 681 if (ZEND_OFFSET_TO_OPLINE_NUM(op_array, opline, Z_LVAL_P(zv)) == old->start) { in zend_ssa_replace_control_link() 682 Z_LVAL_P(zv) = ZEND_OPLINE_NUM_TO_OFFSET(op_array, opline, dst->start); in zend_ssa_replace_control_link() 959 ? zend_hash_index_find(jmptable, Z_LVAL_P(zv)) in zend_dfa_optimize_jmps() 963 target = ZEND_OFFSET_TO_OPLINE_NUM(op_array, opline, Z_LVAL_P(jmp_zv)); in zend_dfa_optimize_jmps() 1203 && Z_LVAL_P(zv) == 0) in zend_dfa_optimize_op_array() 1225 && Z_LVAL_P(zv) == 2) in zend_dfa_optimize_op_array() 1254 && Z_LVAL_P(zv) == 0) in zend_dfa_optimize_op_array() 1270 && Z_LVAL_P(zv) == 2) in zend_dfa_optimize_op_array() 1644 && Z_LVAL_P(CT_CONSTANT_EX(op_array, opline->op2.constant)) == 1 in zend_dfa_optimize_op_array() [all …]
|
/php-src/ext/xsl/ |
H A D | php_xsl.c | 155 zend_long old_property_value = Z_LVAL_P(property); in xsl_objects_write_property_with_validation() 161 if (UNEXPECTED(Z_LVAL_P(property) < 0)) { in xsl_objects_write_property_with_validation() 162 Z_LVAL_P(property) = old_property_value; in xsl_objects_write_property_with_validation()
|
/php-src/ext/standard/ |
H A D | formatted_print.c | 532 if (Z_LVAL_P(tmp) < 0 || Z_LVAL_P(tmp) > INT_MAX) { in php_formatted_print() 536 width = Z_LVAL_P(tmp); in php_formatted_print() 576 if (Z_LVAL_P(tmp) < -1 || Z_LVAL_P(tmp) > INT_MAX) { in php_formatted_print() 580 precision = Z_LVAL_P(tmp); in php_formatted_print()
|
/php-src/ext/soap/ |
H A D | php_http.c | 171 port = Z_LVAL_P(proxy_port); in http_connect() 179 if (Z_TYPE_P(tmp) == IS_LONG && Z_LVAL_P(tmp) > 0) { in http_connect() 180 tv.tv_sec = Z_LVAL_P(tmp); in http_connect() 193 switch (Z_LVAL_P(tmp)) { in http_connect() 280 switch (Z_LVAL_P(tmp)) { in http_connect() 371 int level = Z_LVAL_P(tmp) & 0x0f; in make_http_soap_request() 372 int kind = Z_LVAL_P(tmp) & SOAP_COMPRESSION_DEFLATE; in make_http_soap_request() 376 if ((Z_LVAL_P(tmp) & SOAP_COMPRESSION_ACCEPT) != 0) { in make_http_soap_request() 419 use_proxy = Z_LVAL_P(tmp); in make_http_soap_request() 438 redirect_max = Z_LVAL_P(tmp); in make_http_soap_request() [all …]
|
/php-src/ext/simplexml/ |
H A D | simplexml.c | 256 while (attr && nodendx <= Z_LVAL_P(member)) { in sxe_prop_dim_read() 258 if (nodendx == Z_LVAL_P(member)) { in sxe_prop_dim_read() 290 if (member && Z_LVAL_P(member) > 0) { in sxe_prop_dim_read() 301 if (member && cnt < Z_LVAL_P(member)) { in sxe_prop_dim_read() 482 while (attr && nodendx <= Z_LVAL_P(member)) { in sxe_prop_dim_write() 484 if (nodendx == Z_LVAL_P(member)) { in sxe_prop_dim_write() 519 if (member && Z_LVAL_P(member) > 0) { in sxe_prop_dim_write() 567 if (member && cnt < Z_LVAL_P(member)) { in sxe_prop_dim_write() 699 while (attr && nodendx <= Z_LVAL_P(member)) { in sxe_prop_dim_exists() 701 if (nodendx == Z_LVAL_P(member)) { in sxe_prop_dim_exists() [all …]
|
/php-src/ext/intl/msgformat/ |
H A D | msgformat_helpers.cpp | 489 if (UNEXPECTED(Z_LVAL_P(elem) > INT32_MAX || in umsg_format_helper() 490 Z_LVAL_P(elem) < INT32_MIN)) { in umsg_format_helper() 495 tInt32 = (int32_t)Z_LVAL_P(elem); in umsg_format_helper() 518 tInt64 = (int64_t)Z_LVAL_P(elem); in umsg_format_helper() 559 formattable.setInt64((int64_t)Z_LVAL_P(elem)); in umsg_format_helper()
|
/php-src/ext/session/ |
H A D | mod_user.c | 62 if ((Z_TYPE_P(value) == IS_LONG) && (Z_LVAL_P(value) == -1)) { in verify_bool_return_type_userland_calls() 69 if ((Z_TYPE_P(value) == IS_LONG) && (Z_LVAL_P(value) == 0)) { in verify_bool_return_type_userland_calls()
|