/PHP-7.2/Zend/ |
H A D | zend_operators.h | 491 Z_LVAL_P(op1)++; in fast_long_increment_function() 545 Z_LVAL_P(op1)--; in fast_long_decrement_function() 555 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function() 562 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function() 623 && (Z_LVAL_P(op1) & LONG_SIGN_MASK) != ((Z_LVAL_P(op1) + Z_LVAL_P(op2)) & LONG_SIGN_MASK))) { in fast_long_add_function() 624 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function() 626 ZVAL_LONG(result, Z_LVAL_P(op1) + Z_LVAL_P(op2)); in fast_long_add_function() 658 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function() 727 ZVAL_LONG(result, Z_LVAL_P(op1) - Z_LVAL_P(op2)); in fast_long_sub_function() 746 return Z_LVAL_P(op1) == Z_LVAL_P(op2); in fast_equal_check_function() [all …]
|
H A D | zend_operators.c | 1018 …ZEND_SIGNED_MULTIPLY_LONG(Z_LVAL_P(op1),Z_LVAL_P(op2), Z_LVAL_P(result),Z_DVAL_P(result),overflow); in mul_function() 1072 zend_long l1 = 1, l2 = Z_LVAL_P(op1), i = Z_LVAL_P(op2); in pow_function() 1185 } else if (Z_LVAL_P(op2) == -1 && Z_LVAL_P(op1) == ZEND_LONG_MIN) { in div_function() 1190 if (Z_LVAL_P(op1) % Z_LVAL_P(op2) == 0) { /* integer */ in div_function() 1191 ZVAL_LONG(result, Z_LVAL_P(op1) / Z_LVAL_P(op2)); in div_function() 1193 ZVAL_DOUBLE(result, ((double) Z_LVAL_P(op1)) / Z_LVAL_P(op2)); in div_function() 1400 ZVAL_LONG(result, Z_LVAL_P(op1) | Z_LVAL_P(op2)); in bitwise_or_function() 1478 ZVAL_LONG(result, Z_LVAL_P(op1) & Z_LVAL_P(op2)); in bitwise_and_function() 1556 ZVAL_LONG(result, Z_LVAL_P(op1) ^ Z_LVAL_P(op2)); in bitwise_xor_function() 1923 ZVAL_LONG(result, Z_LVAL_P(op1)>Z_LVAL_P(op2)?1:(Z_LVAL_P(op1)<Z_LVAL_P(op2)?-1:0)); in compare_function() [all …]
|
H A D | zend_vm_execute.skl | 78 op->handler = (const void *)(zend_uintptr_t)Z_LVAL_P(zv); 98 return zend_opcode_handler_funcs[Z_LVAL_P(zv)];
|
H A D | zend_vm_def.h | 195 ZVAL_LONG(result, Z_LVAL_P(op1) % Z_LVAL_P(op2)); 398 result = (Z_LVAL_P(op1) == Z_LVAL_P(op2)); 466 result = (Z_LVAL_P(op1) != Z_LVAL_P(op2)); 534 result = (Z_LVAL_P(op1) < Z_LVAL_P(op2)); 584 result = (Z_LVAL_P(op1) <= Z_LVAL_P(op2)); 4790 result = (Z_LVAL_P(op1) == Z_LVAL_P(op2)); 8342 ZVAL_LONG(result, Z_LVAL_P(op1) + Z_LVAL_P(op2)); 8452 result = (Z_LVAL_P(op1) == Z_LVAL_P(op2)); 8480 result = (Z_LVAL_P(op1) != Z_LVAL_P(op2)); 8508 result = (Z_LVAL_P(op1) < Z_LVAL_P(op2)); [all …]
|
H A D | zend_vm_execute.h | 12244 result = (Z_LVAL_P(op1) == Z_LVAL_P(op2)); 12258 result = (Z_LVAL_P(op1) == Z_LVAL_P(op2)); 12272 result = (Z_LVAL_P(op1) == Z_LVAL_P(op2)); 12328 result = (Z_LVAL_P(op1) != Z_LVAL_P(op2)); 12342 result = (Z_LVAL_P(op1) != Z_LVAL_P(op2)); 12356 result = (Z_LVAL_P(op1) != Z_LVAL_P(op2)); 12412 result = (Z_LVAL_P(op1) < Z_LVAL_P(op2)); 12426 result = (Z_LVAL_P(op1) < Z_LVAL_P(op2)); 12440 result = (Z_LVAL_P(op1) < Z_LVAL_P(op2)); 12496 result = (Z_LVAL_P(op1) <= Z_LVAL_P(op2)); [all …]
|
/PHP-7.2/ext/ctype/ |
H A D | ctype.c | 151 if (Z_LVAL_P(c) <= 255 && Z_LVAL_P(c) >= 0) { \ 152 RETURN_BOOL(iswhat((int)Z_LVAL_P(c))); \ 153 } else if (Z_LVAL_P(c) >= -128 && Z_LVAL_P(c) < 0) { \ 154 RETURN_BOOL(iswhat((int)Z_LVAL_P(c) + 256)); \
|
/PHP-7.2/ext/intl/dateformat/ |
H A D | dateformat_format.c | 81 if (Z_LVAL_P(ele_value) > INT32_MAX || in internal_get_arr_ele() 82 Z_LVAL_P(ele_value) < INT32_MIN) { in internal_get_arr_ele() 85 Z_LVAL_P(ele_value), key_name); in internal_get_arr_ele() 89 result = Z_LVAL_P(ele_value); in internal_get_arr_ele()
|
H A D | dateformat_format_object.cpp | 50 zend_long lval = Z_LVAL_P(z); in valid_format() 113 dateStyle = (DateFormat::EStyle)Z_LVAL_P(z); in PHP_FUNCTION() 129 timeStyle = (DateFormat::EStyle)Z_LVAL_P(z); in PHP_FUNCTION() 137 dateStyle = timeStyle = (DateFormat::EStyle)Z_LVAL_P(format); in PHP_FUNCTION()
|
H A D | dateformat_parse.c | 150 if (ZEND_LONG_INT_OVFL(Z_LVAL_P(z_parse_pos))) { in PHP_FUNCTION() 155 parse_pos = (int32_t)Z_LVAL_P(z_parse_pos); in PHP_FUNCTION() 194 if (ZEND_LONG_INT_OVFL(Z_LVAL_P(z_parse_pos))) { in PHP_FUNCTION() 199 parse_pos = (int32_t)Z_LVAL_P(z_parse_pos); in PHP_FUNCTION()
|
H A D | dateformat_helpers.cpp | 52 zend_long v = Z_LVAL_P(calendar_zv); in datefmt_process_calendar_arg() 69 cal_int_type = Z_LVAL_P(calendar_zv); in datefmt_process_calendar_arg()
|
/PHP-7.2/ext/mysqli/ |
H A D | mysqli_driver.c | 42 MyG(value) = Z_LVAL_P(value) > 0; \ 56 MyG(value) = Z_LVAL_P(value); \ 77 MyG(report_mode) = Z_LVAL_P(value); in driver_report_write()
|
/PHP-7.2/ext/intl/formatter/ |
H A D | formatter_format.c | 78 formatted_len = unum_format(FORMATTER_OBJECT(nfo), (int32_t)Z_LVAL_P(number), in PHP_FUNCTION() 83 formatted_len = unum_format(FORMATTER_OBJECT(nfo), (int32_t)Z_LVAL_P(number), in PHP_FUNCTION() 94 int64_t value = (Z_TYPE_P(number) == IS_DOUBLE)?(int64_t)Z_DVAL_P(number):Z_LVAL_P(number); in PHP_FUNCTION()
|
H A D | formatter_parse.c | 73 position = (int32_t)Z_LVAL_P( zposition ); in PHP_FUNCTION() 161 position = (int32_t)Z_LVAL_P( zposition ); in PHP_FUNCTION()
|
/PHP-7.2/win32/ |
H A D | codepage.c | 613 if (ZEND_LONG_UINT_OVFL(Z_LVAL_P(z_in_cp))) { in PHP_FUNCTION() 614 php_error_docref(NULL, E_WARNING, "Argument %d is out of range", Z_LVAL_P(z_in_cp)); in PHP_FUNCTION() 618 in_cp = php_win32_cp_get_by_id((DWORD)Z_LVAL_P(z_in_cp)); in PHP_FUNCTION() 620 php_error_docref(NULL, E_WARNING, "Invalid codepage %d", Z_LVAL_P(z_in_cp)); in PHP_FUNCTION() 634 if (ZEND_LONG_UINT_OVFL(Z_LVAL_P(z_out_cp))) { in PHP_FUNCTION() 635 php_error_docref(NULL, E_WARNING, "Argument %d is out of range", Z_LVAL_P(z_out_cp)); in PHP_FUNCTION() 639 out_cp = php_win32_cp_get_by_id((DWORD)Z_LVAL_P(z_out_cp)); in PHP_FUNCTION() 641 php_error_docref(NULL, E_WARNING, "Invalid codepage %d", Z_LVAL_P(z_out_cp)); in PHP_FUNCTION()
|
/PHP-7.2/ext/sockets/ |
H A D | multicast.c | 93 if (Z_LVAL_P(val) < 0 || (zend_ulong)Z_LVAL_P(val) > UINT_MAX) { in php_get_if_index_from_zval() 96 " given " ZEND_LONG_FMT, UINT_MAX, Z_LVAL_P(val)); in php_get_if_index_from_zval() 99 *out = Z_LVAL_P(val); in php_get_if_index_from_zval() 292 if (Z_LVAL_P(arg4) < 0L || Z_LVAL_P(arg4) > 255L) { in php_do_setsockopt_ip_mcast() 297 ipv4_mcast_ttl_lback = (unsigned char) Z_LVAL_P(arg4); in php_do_setsockopt_ip_mcast() 357 if (Z_LVAL_P(arg4) < -1L || Z_LVAL_P(arg4) > 255L) { in php_do_setsockopt_ipv6_mcast() 362 ov = (int) Z_LVAL_P(arg4); in php_do_setsockopt_ipv6_mcast()
|
/PHP-7.2/ext/gmp/ |
H A D | gmp.c | 803 res = mpz_cmp_si(gmpnum_a, Z_LVAL_P(b_arg)); in gmp_cmp() 836 b_is_zero = (Z_LVAL_P(b_arg) == 0); in gmp_zval_binary_ui_op() 885 b_is_zero = (Z_LVAL_P(b_arg) == 0); in gmp_zval_binary_ui_op2() 1372 if (Z_LVAL_P(a_arg) >= 0) { in ZEND_FUNCTION() 1377 if (Z_LVAL_P(a_arg) < 0) { in ZEND_FUNCTION() 1407 mpz_ui_pow_ui(gmpnum_result, Z_LVAL_P(base_arg), exp); in ZEND_FUNCTION() 1809 if (Z_TYPE_P(seed) == IS_LONG && Z_LVAL_P(seed) >= 0) { in ZEND_FUNCTION() 1810 gmp_randseed_ui(GMPG(rand_state), Z_LVAL_P(seed)); in ZEND_FUNCTION() 1863 if (mpz_cmp_ui(gmpnum_max, Z_LVAL_P(min_arg)) <= 0) { in ZEND_FUNCTION() 1872 if (Z_LVAL_P(min_arg) != 0) { in ZEND_FUNCTION() [all …]
|
/PHP-7.2/ext/spl/ |
H A D | spl_engine.c | 55 return Z_LVAL_P(offset); in spl_offset_convert_to_long()
|
/PHP-7.2/ext/sysvmsg/ |
H A D | sysvmsg.c | 177 stat.msg_perm.uid = Z_LVAL_P(item); in PHP_FUNCTION() 181 stat.msg_perm.gid = Z_LVAL_P(item); in PHP_FUNCTION() 185 stat.msg_perm.mode = Z_LVAL_P(item); in PHP_FUNCTION() 189 stat.msg_qbytes = Z_LVAL_P(item); in PHP_FUNCTION() 438 message_len = spprintf(&p, 0, ZEND_LONG_FMT, Z_LVAL_P(message)); in PHP_FUNCTION()
|
/PHP-7.2/ext/intl/msgformat/ |
H A D | msgformat_helpers.cpp | 496 d = (double)Z_LVAL_P(elem); in umsg_format_helper() 502 : (double)Z_LVAL_P(elem); in umsg_format_helper() 521 if (Z_LVAL_P(elem) > INT32_MAX || in umsg_format_helper() 522 Z_LVAL_P(elem) < INT32_MIN) { in umsg_format_helper() 527 tInt32 = (int32_t)Z_LVAL_P(elem); in umsg_format_helper() 552 tInt64 = (int64_t)Z_LVAL_P(elem); in umsg_format_helper() 599 formattable.setInt64((int64_t)Z_LVAL_P(elem)); in umsg_format_helper()
|
/PHP-7.2/ext/soap/ |
H A D | php_http.c | 179 port = Z_LVAL_P(proxy_port); in http_connect() 186 Z_TYPE_P(tmp) == IS_LONG && Z_LVAL_P(tmp) > 0) { in http_connect() 187 tv.tv_sec = Z_LVAL_P(tmp); in http_connect() 200 switch (Z_LVAL_P(tmp)) { in http_connect() 287 switch (Z_LVAL_P(tmp)) { in http_connect() 376 int level = Z_LVAL_P(tmp) & 0x0f; in make_http_soap_request() 377 int kind = Z_LVAL_P(tmp) & SOAP_COMPRESSION_DEFLATE; in make_http_soap_request() 381 if ((Z_LVAL_P(tmp) & SOAP_COMPRESSION_ACCEPT) != 0) { in make_http_soap_request() 422 use_proxy = Z_LVAL_P(tmp); in make_http_soap_request() 441 redirect_max = Z_LVAL_P(tmp); in make_http_soap_request() [all …]
|
H A D | soap.c | 1157 (Z_LVAL_P(tmp) == SOAP_1_1 || Z_LVAL_P(tmp) == SOAP_1_2)) { in PHP_METHOD() 1158 version = Z_LVAL_P(tmp); in PHP_METHOD() 1201 service->features = Z_LVAL_P(tmp); in PHP_METHOD() 1206 cache_wsdl = Z_LVAL_P(tmp); in PHP_METHOD() 2316 (Z_LVAL_P(tmp) == SOAP_RPC || Z_LVAL_P(tmp) == SOAP_DOCUMENT)) { 2322 (Z_LVAL_P(tmp) == SOAP_LITERAL || Z_LVAL_P(tmp) == SOAP_ENCODED)) { 2344 (Z_LVAL_P(tmp) == SOAP_1_1 && Z_LVAL_P(tmp) == SOAP_1_2)) { 2345 soap_version = Z_LVAL_P(tmp); 2445 if (Z_LVAL_P(tmp) > 0) { 2456 cache_wsdl = Z_LVAL_P(tmp); [all …]
|
/PHP-7.2/ext/sysvsem/ |
H A D | sysvsem.c | 322 …SysV semaphore " ZEND_LONG_FMT " (key 0x%x) is not currently acquired", Z_LVAL_P(arg_id), sem_ptr-… in php_sysvsem_semop() 391 …NULL, E_WARNING, "SysV semaphore " ZEND_LONG_FMT " does not (any longer) exist", Z_LVAL_P(arg_id)); 400 …php_error_docref(NULL, E_WARNING, "failed for SysV sempphore " ZEND_LONG_FMT ": %s", Z_LVAL_P(arg_…
|
/PHP-7.2/ext/standard/ |
H A D | math.c | 303 if (Z_LVAL_P(value) == ZEND_LONG_MIN) { in PHP_FUNCTION() 306 RETURN_LONG(Z_LVAL_P(value) < 0 ? -Z_LVAL_P(value) : Z_LVAL_P(value)); in PHP_FUNCTION() 389 RETURN_DOUBLE((double) Z_LVAL_P(value)); in PHP_FUNCTION() 394 return_val = (Z_TYPE_P(value) == IS_LONG) ? (double)Z_LVAL_P(value) : Z_DVAL_P(value); in PHP_FUNCTION() 926 value = Z_LVAL_P(arg); in _php_math_longtobase()
|
/PHP-7.2/sapi/phpdbg/ |
H A D | phpdbg_frame.c | 298 …"<frame %r id=\"%d\" file=\"%s\" line=\"" ZEND_LONG_FMT "\"", i, Z_STRVAL_P(file), Z_LVAL_P(line)); in phpdbg_dump_backtrace() 300 phpdbg_out(" at %s:%ld\n", Z_STRVAL_P(file), Z_LVAL_P(line)); in phpdbg_dump_backtrace() 314 …n}\" file=\"%s\" line=\"%d\"", "frame #%d: {main} at %s:%ld", i, Z_STRVAL_P(file), Z_LVAL_P(line)); in phpdbg_dump_backtrace()
|
/PHP-7.2/ext/simplexml/ |
H A D | simplexml.c | 296 while (attr && nodendx <= Z_LVAL_P(member)) { in sxe_prop_dim_read() 298 if (nodendx == Z_LVAL_P(member)) { in sxe_prop_dim_read() 330 if (member && Z_LVAL_P(member) > 0) { in sxe_prop_dim_read() 341 if (member && cnt < Z_LVAL_P(member)) { in sxe_prop_dim_read() 552 while (attr && nodendx <= Z_LVAL_P(member)) { in sxe_prop_dim_write() 554 if (nodendx == Z_LVAL_P(member)) { in sxe_prop_dim_write() 589 if (member && Z_LVAL_P(member) > 0) { in sxe_prop_dim_write() 637 if (member && cnt < Z_LVAL_P(member)) { in sxe_prop_dim_write() 764 while (attr && nodendx <= Z_LVAL_P(member)) { in sxe_prop_dim_exists() 766 if (nodendx == Z_LVAL_P(member)) { in sxe_prop_dim_exists() [all …]
|