/PHP-7.4/Zend/ |
H A D | zend_operators.h | 567 Z_LVAL_P(op1)++; in fast_long_increment_function() 630 Z_LVAL_P(op1)--; in fast_long_decrement_function() 654 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function() 672 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function() 692 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2)); in fast_long_add_function() 715 && (Z_LVAL_P(op1) & LONG_SIGN_MASK) != ((Z_LVAL_P(op1) + Z_LVAL_P(op2)) & LONG_SIGN_MASK))) { in fast_long_add_function() 718 ZVAL_LONG(result, Z_LVAL_P(op1) + Z_LVAL_P(op2)); in fast_long_add_function() 764 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) - (double) Z_LVAL_P(op2)); in fast_long_sub_function() 818 ZVAL_LONG(result, Z_LVAL_P(op1) - Z_LVAL_P(op2)); in fast_long_sub_function() 848 return Z_LVAL_P(op1) == Z_LVAL_P(op2); in fast_equal_check_function() [all …]
|
H A D | zend_operators.c | 1108 …ZEND_SIGNED_MULTIPLY_LONG(Z_LVAL_P(op1),Z_LVAL_P(op2), Z_LVAL_P(result),Z_DVAL_P(result),overflow); in mul_function() 1168 zend_long l1 = 1, l2 = Z_LVAL_P(op1), i = Z_LVAL_P(op2); in pow_function() 1291 } else if (Z_LVAL_P(op2) == -1 && Z_LVAL_P(op1) == ZEND_LONG_MIN) { in div_function() 1296 if (Z_LVAL_P(op1) % Z_LVAL_P(op2) == 0) { /* integer */ in div_function() 1297 ZVAL_LONG(result, Z_LVAL_P(op1) / Z_LVAL_P(op2)); in div_function() 1299 ZVAL_DOUBLE(result, ((double) Z_LVAL_P(op1)) / Z_LVAL_P(op2)); in div_function() 1512 ZVAL_LONG(result, Z_LVAL_P(op1) | Z_LVAL_P(op2)); in bitwise_or_function() 1590 ZVAL_LONG(result, Z_LVAL_P(op1) & Z_LVAL_P(op2)); in bitwise_and_function() 1668 ZVAL_LONG(result, Z_LVAL_P(op1) ^ Z_LVAL_P(op2)); in bitwise_xor_function() 2035 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_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_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 | 106 op->handler = (const void *)(zend_uintptr_t)Z_LVAL_P(zv); 126 return zend_opcode_handler_funcs[Z_LVAL_P(zv)];
|
H A D | zend_vm_def.h | 274 ZVAL_LONG(result, Z_LVAL_P(op1) % Z_LVAL_P(op2)); 538 if (EXPECTED(Z_LVAL_P(op1) == Z_LVAL_P(op2))) { 633 if (EXPECTED(Z_LVAL_P(op1) != Z_LVAL_P(op2))) { 728 if (EXPECTED(Z_LVAL_P(op1) < Z_LVAL_P(op2))) { 808 if (EXPECTED(Z_LVAL_P(op1) <= Z_LVAL_P(op2))) { 5393 if (EXPECTED(Z_LVAL_P(op1) == Z_LVAL_P(op2))) { 8894 ZVAL_LONG(result, Z_LVAL_P(op1) + Z_LVAL_P(op2)); 9004 result = (Z_LVAL_P(op1) == Z_LVAL_P(op2)); 9032 result = (Z_LVAL_P(op1) != Z_LVAL_P(op2)); 9060 result = (Z_LVAL_P(op1) < Z_LVAL_P(op2)); [all …]
|
/PHP-7.4/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)); \ 155 } else if (Z_LVAL_P(c) >= 0) { \
|
/PHP-7.4/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 | 56 zend_long lval = Z_LVAL_P(z); in valid_format() 119 dateStyle = (DateFormat::EStyle)Z_LVAL_P(z); in PHP_FUNCTION() 135 timeStyle = (DateFormat::EStyle)Z_LVAL_P(z); in PHP_FUNCTION() 143 dateStyle = timeStyle = (DateFormat::EStyle)Z_LVAL_P(format); in PHP_FUNCTION()
|
H A D | dateformat_helpers.cpp | 54 zend_long v = Z_LVAL_P(calendar_zv); in datefmt_process_calendar_arg() 71 cal_int_type = Z_LVAL_P(calendar_zv); in datefmt_process_calendar_arg()
|
/PHP-7.4/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.4/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()
|
/PHP-7.4/ext/sockets/ |
H A D | multicast.c | 91 if (Z_LVAL_P(val) < 0 || (zend_ulong)Z_LVAL_P(val) > UINT_MAX) { in php_get_if_index_from_zval() 94 " given " ZEND_LONG_FMT, UINT_MAX, Z_LVAL_P(val)); in php_get_if_index_from_zval() 97 *out = Z_LVAL_P(val); in php_get_if_index_from_zval() 286 if (Z_LVAL_P(arg4) < 0L || Z_LVAL_P(arg4) > 255L) { in php_do_setsockopt_ip_mcast() 291 ipv4_mcast_ttl_lback = (unsigned char) Z_LVAL_P(arg4); in php_do_setsockopt_ip_mcast() 351 if (Z_LVAL_P(arg4) < -1L || Z_LVAL_P(arg4) > 255L) { in php_do_setsockopt_ipv6_mcast() 356 ov = (int) Z_LVAL_P(arg4); in php_do_setsockopt_ipv6_mcast()
|
/PHP-7.4/ext/gmp/ |
H A D | gmp.c | 812 res = mpz_cmp_si(gmpnum_a, Z_LVAL_P(b_arg)); in gmp_cmp() 844 b_is_zero = (Z_LVAL_P(b_arg) == 0); in gmp_zval_binary_ui_op() 891 b_is_zero = (Z_LVAL_P(b_arg) == 0); in gmp_zval_binary_ui_op2() 1363 if (Z_LVAL_P(a_arg) >= 0) { in ZEND_FUNCTION() 1368 if (Z_LVAL_P(a_arg) < 0) { in ZEND_FUNCTION() 1428 mpz_ui_pow_ui(gmpnum_result, Z_LVAL_P(base_arg), exp); in ZEND_FUNCTION() 1901 if (Z_TYPE_P(seed) == IS_LONG && Z_LVAL_P(seed) >= 0) { in ZEND_FUNCTION() 1902 gmp_randseed_ui(GMPG(rand_state), Z_LVAL_P(seed)); in ZEND_FUNCTION() 1957 if (mpz_cmp_ui(gmpnum_max, Z_LVAL_P(min_arg)) <= 0) { in ZEND_FUNCTION() 1966 if (Z_LVAL_P(min_arg) != 0) { in ZEND_FUNCTION() [all …]
|
/PHP-7.4/ext/spl/ |
H A D | spl_engine.c | 55 return Z_LVAL_P(offset); in spl_offset_convert_to_long()
|
/PHP-7.4/win32/ |
H A D | codepage.c | 649 if (ZEND_LONG_UINT_OVFL(Z_LVAL_P(z_in_cp))) { in PHP_FUNCTION() 650 php_error_docref(NULL, E_WARNING, "Argument %d is out of range", Z_LVAL_P(z_in_cp)); in PHP_FUNCTION() 654 in_cp = php_win32_cp_get_by_id((DWORD)Z_LVAL_P(z_in_cp)); in PHP_FUNCTION() 656 php_error_docref(NULL, E_WARNING, "Invalid codepage %d", Z_LVAL_P(z_in_cp)); in PHP_FUNCTION() 672 if (ZEND_LONG_UINT_OVFL(Z_LVAL_P(z_out_cp))) { in PHP_FUNCTION() 673 php_error_docref(NULL, E_WARNING, "Argument %d is out of range", Z_LVAL_P(z_out_cp)); in PHP_FUNCTION() 677 out_cp = php_win32_cp_get_by_id((DWORD)Z_LVAL_P(z_out_cp)); in PHP_FUNCTION() 679 php_error_docref(NULL, E_WARNING, "Invalid codepage %d", Z_LVAL_P(z_out_cp)); in PHP_FUNCTION()
|
/PHP-7.4/ext/standard/ |
H A D | proc_open.c | 576 if (Z_TYPE_P(item) == IS_TRUE || ((Z_TYPE_P(item) == IS_LONG) && Z_LVAL_P(item))) { in PHP_FUNCTION() 584 if (Z_TYPE_P(item) == IS_TRUE || ((Z_TYPE_P(item) == IS_LONG) && Z_LVAL_P(item))) { in PHP_FUNCTION() 591 if (Z_TYPE_P(item) == IS_TRUE || ((Z_TYPE_P(item) == IS_LONG) && Z_LVAL_P(item))) { in PHP_FUNCTION() 598 if (Z_TYPE_P(item) == IS_TRUE || ((Z_TYPE_P(item) == IS_LONG) && Z_LVAL_P(item))) { in PHP_FUNCTION() 605 if (Z_TYPE_P(item) == IS_TRUE || ((Z_TYPE_P(item) == IS_LONG) && Z_LVAL_P(item))) { in PHP_FUNCTION() 782 if (descriptors[i].index == Z_LVAL_P(ztarget)) { in PHP_FUNCTION() 790 if (Z_LVAL_P(ztarget) < 0 || Z_LVAL_P(ztarget) > 2) { in PHP_FUNCTION() 792 "Redirection target " ZEND_LONG_FMT " not found", Z_LVAL_P(ztarget)); in PHP_FUNCTION() 799 childend = Z_LVAL_P(ztarget); in PHP_FUNCTION() 801 switch (Z_LVAL_P(ztarget)) { in PHP_FUNCTION()
|
H A D | math.c | 301 if (Z_LVAL_P(value) == ZEND_LONG_MIN) { in PHP_FUNCTION() 304 RETURN_LONG(Z_LVAL_P(value) < 0 ? -Z_LVAL_P(value) : Z_LVAL_P(value)); in PHP_FUNCTION() 387 RETURN_DOUBLE((double) Z_LVAL_P(value)); in PHP_FUNCTION() 392 return_val = (Z_TYPE_P(value) == IS_LONG) ? (double)Z_LVAL_P(value) : Z_DVAL_P(value); in PHP_FUNCTION() 943 value = Z_LVAL_P(arg); in _php_math_longtobase()
|
/PHP-7.4/ext/sysvsem/ |
H A D | sysvsem.c | 331 …SysV semaphore " ZEND_LONG_FMT " (key 0x%x) is not currently acquired", Z_LVAL_P(arg_id), sem_ptr-… in php_sysvsem_semop() 400 …NULL, E_WARNING, "SysV semaphore " ZEND_LONG_FMT " does not (any longer) exist", Z_LVAL_P(arg_id)); 409 …php_error_docref(NULL, E_WARNING, "failed for SysV semaphore " ZEND_LONG_FMT ": %s", Z_LVAL_P(arg_…
|
/PHP-7.4/ext/opcache/Optimizer/ |
H A D | compact_literals.c | 108 ret = Z_LVAL_P(pos); in add_static_slot() 362 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals() 379 && LITERAL_NUM_RELATED(info[Z_LVAL_P(pos)].flags) == 2) { in zend_optimizer_compact_literals() 380 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals() 400 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals() 424 Z_TYPE(op_array->literals[Z_LVAL_P(pos)]) == IS_STRING && in zend_optimizer_compact_literals() 425 LITERAL_NUM_RELATED(info[i].flags) == LITERAL_NUM_RELATED(info[Z_LVAL_P(pos)].flags) && in zend_optimizer_compact_literals() 428 (info[Z_LVAL_P(pos)].flags & LITERAL_KIND_MASK) != LITERAL_VALUE))) { in zend_optimizer_compact_literals() 430 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals()
|
/PHP-7.4/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() 377 int level = Z_LVAL_P(tmp) & 0x0f; in make_http_soap_request() 378 int kind = Z_LVAL_P(tmp) & SOAP_COMPRESSION_DEFLATE; in make_http_soap_request() 382 if ((Z_LVAL_P(tmp) & SOAP_COMPRESSION_ACCEPT) != 0) { in make_http_soap_request() 423 use_proxy = Z_LVAL_P(tmp); in make_http_soap_request() 442 redirect_max = Z_LVAL_P(tmp); in make_http_soap_request() [all …]
|
H A D | soap.c | 1138 (Z_LVAL_P(tmp) == SOAP_1_1 || Z_LVAL_P(tmp) == SOAP_1_2)) { in PHP_METHOD() 1139 version = Z_LVAL_P(tmp); in PHP_METHOD() 1182 service->features = Z_LVAL_P(tmp); in PHP_METHOD() 1187 cache_wsdl = Z_LVAL_P(tmp); in PHP_METHOD() 2314 (Z_LVAL_P(tmp) == SOAP_RPC || Z_LVAL_P(tmp) == SOAP_DOCUMENT)) { 2320 (Z_LVAL_P(tmp) == SOAP_LITERAL || Z_LVAL_P(tmp) == SOAP_ENCODED)) { 2342 (Z_LVAL_P(tmp) == SOAP_1_1 || Z_LVAL_P(tmp) == SOAP_1_2)) { 2343 soap_version = Z_LVAL_P(tmp); 2443 if (Z_LVAL_P(tmp) > 0) { 2454 cache_wsdl = Z_LVAL_P(tmp); [all …]
|
/PHP-7.4/sapi/phpdbg/ |
H A D | phpdbg_frame.c | 299 …"<frame %r id=\"%d\" file=\"%s\" line=\"" ZEND_LONG_FMT "\"", i, Z_STRVAL_P(file), Z_LVAL_P(line)); in phpdbg_dump_backtrace() 301 phpdbg_out(" at %s:%ld\n", Z_STRVAL_P(file), Z_LVAL_P(line)); in phpdbg_dump_backtrace() 315 …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.4/ext/simplexml/ |
H A D | simplexml.c | 298 while (attr && nodendx <= Z_LVAL_P(member)) { in sxe_prop_dim_read() 300 if (nodendx == Z_LVAL_P(member)) { in sxe_prop_dim_read() 332 if (member && Z_LVAL_P(member) > 0) { in sxe_prop_dim_read() 343 if (member && cnt < Z_LVAL_P(member)) { in sxe_prop_dim_read() 545 while (attr && nodendx <= Z_LVAL_P(member)) { in sxe_prop_dim_write() 547 if (nodendx == Z_LVAL_P(member)) { in sxe_prop_dim_write() 582 if (member && Z_LVAL_P(member) > 0) { in sxe_prop_dim_write() 630 if (member && cnt < Z_LVAL_P(member)) { in sxe_prop_dim_write() 763 while (attr && nodendx <= Z_LVAL_P(member)) { in sxe_prop_dim_exists() 765 if (nodendx == Z_LVAL_P(member)) { in sxe_prop_dim_exists() [all …]
|
/PHP-7.4/ext/intl/msgformat/ |
H A D | msgformat_helpers.cpp | 491 if (Z_LVAL_P(elem) > INT32_MAX || in umsg_format_helper() 492 Z_LVAL_P(elem) < INT32_MIN) { in umsg_format_helper() 497 tInt32 = (int32_t)Z_LVAL_P(elem); in umsg_format_helper() 520 tInt64 = (int64_t)Z_LVAL_P(elem); in umsg_format_helper() 561 formattable.setInt64((int64_t)Z_LVAL_P(elem)); in umsg_format_helper()
|