/php-src/ext/bcmath/libbcmath/src/ |
H A D | long2num.c | 23 bc_num bc_long2num(zend_long lval) in bc_long2num() argument 27 if (UNEXPECTED(lval == 0)) { in bc_long2num() 32 bool negative = lval < 0; in bc_long2num() 33 if (UNEXPECTED(lval == ZEND_LONG_MIN)) { in bc_long2num() 40 lval = -lval; in bc_long2num() 43 zend_long tmp = lval; in bc_long2num() 53 *ptr-- = lval % BASE; in bc_long2num() 54 lval /= BASE; in bc_long2num()
|
/php-src/Zend/ |
H A D | zend_multiply.h | 32 else (lval) = __tmpvar; \ 42 else (lval) = __tmpvar; \ 54 else (lval) = __tmpvar; \ 66 else (lval) = __tmpvar; \ 79 else (lval) = __tmpvar; \ 91 (lval) = __low; \ 104 (lval) = __low; \ 118 (lval) = __lres; \ 135 (lval) = __low; \ 148 (lval) = (long) __result; \ [all …]
|
H A D | zend_constants.h | 52 #define REGISTER_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(name)… argument 59 …LONG_CONSTANT(ns, name, lval, flags) zend_register_long_constant(ZEND_NS_NAME(ns, name), sizeof(Z… argument 66 …define REGISTER_MAIN_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(… argument 84 ZEND_API void zend_register_long_constant(const char *name, size_t name_len, zend_long lval, int fl…
|
H A D | zend_ini_scanner.l | 282 static void zend_ini_escape_string(zval *lval, const char *str, int len, char quote_type) in zend_ini_escape_string() argument 287 zend_ini_copy_value(lval, str, len); in zend_ini_escape_string() 290 s = t = Z_STRVAL_P(lval); in zend_ini_escape_string() 291 end = s + Z_STRLEN_P(lval); in zend_ini_escape_string() 311 Z_STRLEN_P(lval)--; in zend_ini_escape_string()
|
H A D | zend_operators.c | 396 return lval; in zendi_try_get_long() 401 zend_long lval; in zendi_try_get_long() local 419 return lval; in zendi_try_get_long() 433 return lval; in zendi_try_get_long() 923 return lval; in zval_get_long_func() 928 zend_long lval; in zval_get_long_func() local 933 return lval; in zval_get_long_func() 947 return lval; in zval_get_long_func() 2216 return lval > str_lval ? 1 : lval < str_lval ? -1 : 0; in compare_long_to_string() 2716 zend_long lval; in decrement_function() local [all …]
|
H A D | zend_ini_parser.y | 295 zend_long lval; in convert_to_number() local 298 if ((type = is_numeric_string_ex(str, str_len, &lval, &dval, 0, &overflow, NULL)) != 0) { in convert_to_number() 300 ZVAL_LONG(retval, lval); in convert_to_number()
|
/php-src/ext/sockets/ |
H A D | sockaddr_conv.c | 64 zend_long lval = 0; in php_set_inet6_addr() local 70 if (IS_LONG == is_numeric_string(scope, strlen(scope), &lval, &dval, 0)) { in php_set_inet6_addr() 71 if (lval > 0 && (zend_ulong)lval <= UINT_MAX) { in php_set_inet6_addr() 72 scope_id = lval; in php_set_inet6_addr()
|
H A D | conversions.c | 371 zend_long lval; in from_zval_write_int() local 379 if (lval > INT_MAX || lval < INT_MIN) { in from_zval_write_int() 390 zend_long lval; in from_zval_write_uint32() local 409 zend_long lval; in from_zval_write_net_uint16() local 417 if (lval < 0 || lval > 0xFFFF) { in from_zval_write_net_uint16() 428 zend_long lval; in from_zval_write_sa_family() local 449 zend_long lval; in from_zval_write_pid_t() local 457 if (lval < 0 || (pid_t)lval != lval) { /* pid_t is signed */ in from_zval_write_pid_t() 468 zend_long lval; in from_zval_write_uid_t() local 478 if (sizeof(zend_long) > sizeof(uid_t) && (lval < 0 || (uid_t)lval != lval)) { in from_zval_write_uid_t() [all …]
|
/php-src/ext/dom/ |
H A D | nodelist.c | 261 ret.lval = Z_LVAL_P(offset); in dom_modern_nodelist_get_index() 264 ret.lval = zend_dval_to_lval_safe(Z_DVAL_P(offset)); in dom_modern_nodelist_get_index() 266 zend_ulong lval; in dom_modern_nodelist_get_index() local 267 if (ZEND_HANDLE_NUMERIC(Z_STR_P(offset), lval)) { in dom_modern_nodelist_get_index() 269 ret.lval = (zend_long) lval; in dom_modern_nodelist_get_index() 294 php_dom_nodelist_get_item_into_zval(php_dom_obj_from_obj(object)->ptr, index.lval, rv); in dom_modern_nodelist_read_dimension() 309 return index.lval >= 0 && index.lval < php_dom_get_nodelist_length(php_dom_obj_from_obj(object)); in dom_modern_nodelist_has_dimension()
|
H A D | html_collection.c | 118 php_dom_nodelist_get_item_into_zval(php_dom_obj_from_obj(object)->ptr, index.lval, rv); in dom_html_collection_read_dimension() 139 return index.lval >= 0 && index.lval < php_dom_get_nodelist_length(php_dom_obj_from_obj(object)); in dom_html_collection_has_dimension()
|
H A D | nodelist.h | 28 zend_long lval; member
|
/php-src/ext/intl/collator/ |
H A D | collator_is_numeric.c | 207 uint8_t collator_is_numeric( UChar *str, int32_t length, zend_long *lval, double *dval, bool allow_… in collator_is_numeric() argument 221 if (lval) { in collator_is_numeric() 222 *lval = local_lval; in collator_is_numeric() 257 } else if (end_ptr_long && lval) { in collator_is_numeric() 258 *lval = local_lval; in collator_is_numeric()
|
H A D | collator_is_numeric.h | 23 uint8_t collator_is_numeric( UChar *str, int32_t length, zend_long *lval, double *dval, bool allow_…
|
H A D | collator_convert.c | 312 zend_long lval = 0; in collator_convert_string_to_number_if_possible() local 320 …ollator_is_numeric( (UChar*) Z_STRVAL_P(str), UCHARS( Z_STRLEN_P(str) ), &lval, &dval, /* allow_er… in collator_convert_string_to_number_if_possible() 323 ZVAL_LONG(rv, lval); in collator_convert_string_to_number_if_possible()
|
/php-src/ext/pdo/ |
H A D | pdo_dbh.c | 780 *lval = zval_get_long(value); in pdo_get_long_param() 814 zend_long lval; in pdo_dbh_attribute_set() local 819 if (!pdo_get_long_param(&lval, value)) { in pdo_dbh_attribute_set() 822 switch (lval) { in pdo_dbh_attribute_set() 826 dbh->error_mode = lval; in pdo_dbh_attribute_set() 838 switch (lval) { in pdo_dbh_attribute_set() 842 dbh->desired_case = lval; in pdo_dbh_attribute_set() 855 dbh->oracle_nulls = lval; in pdo_dbh_attribute_set() 867 lval = zval_get_long(value); in pdo_dbh_attribute_set() 873 if (lval == PDO_FETCH_USE_DEFAULT) { in pdo_dbh_attribute_set() [all …]
|
/php-src/ext/mysqlnd/ |
H A D | mysqlnd_ps_codec.c | 130 int64_t lval = 0; in ps_fetch_from_1_to_8_bytes() local 132 case 8:lval = (int64_t) sint8korr(*row);break; in ps_fetch_from_1_to_8_bytes() 137 case 4:lval = (int64_t) sint4korr(*row);break; in ps_fetch_from_1_to_8_bytes() 138 case 3:lval = (int64_t) sint3korr(*row);break; in ps_fetch_from_1_to_8_bytes() 139 case 2:lval = (int64_t) sint2korr(*row);break; in ps_fetch_from_1_to_8_bytes() 140 case 1:lval = (int64_t) *(int8_t*)*row;break; in ps_fetch_from_1_to_8_bytes() 144 if ((L64(2147483647) < (int64_t) lval) || (L64(-2147483648) > (int64_t) lval)) { in ps_fetch_from_1_to_8_bytes() 146 ZVAL_STR(zv, zend_i64_to_str(lval)); in ps_fetch_from_1_to_8_bytes() 150 ZVAL_LONG(zv, (zend_long) lval); /* the cast is safe, we are in the range */ in ps_fetch_from_1_to_8_bytes()
|
/php-src/ext/pdo_dblib/ |
H A D | dblib_driver.c | 282 zend_long lval; in dblib_set_attr() local 287 if (!pdo_get_long_param(&lval, val)) { in dblib_set_attr() 290 H->assume_national_character_set_strings = lval == PDO_PARAM_STR_NATL ? 1 : 0; in dblib_set_attr() 294 if (!pdo_get_long_param(&lval, val)) { in dblib_set_attr() 297 return SUCCEED == dbsettime(lval); in dblib_set_attr()
|
/php-src/ext/intl/converter/ |
H A D | converter.c | 159 zend_long lval = Z_LVAL_P(val); in php_converter_append_toUnicode_target() local 160 if ((lval < 0) || (lval > 0x10FFFF)) { in php_converter_append_toUnicode_target() 161 … php_converter_throw_failure(objval, U_ILLEGAL_ARGUMENT_ERROR, "Invalid codepoint U+%04lx", lval); in php_converter_append_toUnicode_target() 164 if (lval > 0xFFFF) { in php_converter_append_toUnicode_target() 168 *(args->target++) = (UChar)(((lval - 0x10000) >> 10) | 0xD800); in php_converter_append_toUnicode_target() 169 *(args->target++) = (UChar)(((lval - 0x10000) & 0x3FF) | 0xDC00); in php_converter_append_toUnicode_target() 175 *(args->target++) = (UChar)lval; in php_converter_append_toUnicode_target()
|
/php-src/ext/spl/ |
H A D | spl_heap.c | 174 zend_long lval = 0; in spl_ptr_heap_zval_max_cmp() local 175 if (spl_ptr_heap_cmp_cb_helper(object, heap_object, a, b, &lval) == FAILURE) { in spl_ptr_heap_zval_max_cmp() 179 return ZEND_NORMALIZE_BOOL(lval); in spl_ptr_heap_zval_max_cmp() 197 zend_long lval = 0; in spl_ptr_heap_zval_min_cmp() local 198 if (spl_ptr_heap_cmp_cb_helper(object, heap_object, a, b, &lval) == FAILURE) { in spl_ptr_heap_zval_min_cmp() 202 return ZEND_NORMALIZE_BOOL(lval); in spl_ptr_heap_zval_min_cmp() 223 zend_long lval = 0; in spl_ptr_pqueue_elem_cmp() local 224 …if (spl_ptr_heap_cmp_cb_helper(object, heap_object, a_priority_p, b_priority_p, &lval) == FAILURE)… in spl_ptr_pqueue_elem_cmp() 228 return ZEND_NORMALIZE_BOOL(lval); in spl_ptr_pqueue_elem_cmp()
|
/php-src/ext/intl/dateformat/ |
H A D | dateformat_format_object.cpp | 54 zend_long lval = Z_LVAL_P(z); in valid_format() local 56 if ((zend_long)valid_styles[i] == lval) { in valid_format()
|
/php-src/ext/bcmath/ |
H A D | bcmath.c | 160 static void php_long2num(bc_num *num, zend_long lval) in php_long2num() argument 162 *num = bc_long2num(lval); in php_long2num() 1175 *lval = Z_LVAL_P(zv); in bcmath_number_parse_num() 1183 *lval = 0; in bcmath_number_parse_num() 1187 return zend_parse_arg_long_slow(zv, lval, 1 /* dummy */) ? SUCCESS : FAILURE; in bcmath_number_parse_num() 1193 bc_num *num, size_t *full_scale, const zend_object *obj, const zend_string *str, zend_long lval) in bc_num_from_obj_or_str_or_long() argument 1205 php_long2num(num, lval); in bc_num_from_obj_or_str_or_long() 1378 if (UNEXPECTED(bc_num_from_obj_or_str_or_long(num, &full_scale, obj, str, lval) == FAILURE)) { in bc_num_from_obj_or_str_or_long_with_err() 1395 zend_long lval = 0; in PHP_METHOD() local 1398 Z_PARAM_STR_OR_LONG(str, lval); in PHP_METHOD() [all …]
|
/php-src/ext/pdo_firebird/ |
H A D | firebird_driver.c | 1036 zend_long lval; in pdo_firebird_set_attribute() local 1131 if (!pdo_get_long_param(&lval, val)) { in pdo_firebird_set_attribute() 1141 if (H->txn_isolation_level != lval) { in pdo_firebird_set_attribute() 1142 if (lval == PDO_FB_READ_COMMITTED || in pdo_firebird_set_attribute() 1143 lval == PDO_FB_REPEATABLE_READ || in pdo_firebird_set_attribute() 1144 lval == PDO_FB_SERIALIZABLE in pdo_firebird_set_attribute() 1150 H->txn_isolation_level = lval; in pdo_firebird_set_attribute()
|
/php-src/ext/pdo_sqlite/ |
H A D | sqlite_driver.c | 297 zend_long lval; in pdo_sqlite_set_attr() local 301 if (!pdo_get_long_param(&lval, val)) { in pdo_sqlite_set_attr() 304 sqlite3_busy_timeout(H->db, lval * 1000); in pdo_sqlite_set_attr() 307 if (!pdo_get_long_param(&lval, val)) { in pdo_sqlite_set_attr() 310 sqlite3_extended_result_codes(H->db, lval); in pdo_sqlite_set_attr()
|
/php-src/ext/filter/ |
H A D | logical_filters.c | 357 zend_long lval; in php_filter_float() local 445 switch (is_numeric_string(num, p - num, &lval, &dval, 0)) { in php_filter_float() 447 if ((min_range_set && (lval < min_range)) || (max_range_set && (lval > max_range))) { in php_filter_float() 451 ZVAL_DOUBLE(value, (double)lval); in php_filter_float()
|
/php-src/ext/pdo_mysql/ |
H A D | mysql_driver.c | 422 zend_long lval; in pdo_mysql_set_attribute() local 443 if (!pdo_get_long_param(&lval, val)) { in pdo_mysql_set_attribute() 446 …((pdo_mysql_db_handle *)dbh->driver_data)->assume_national_character_set_strings = lval == PDO_PAR… in pdo_mysql_set_attribute() 487 if (!pdo_get_long_param(&lval, val)) { in pdo_mysql_set_attribute() 490 if (lval < 0) { in pdo_mysql_set_attribute() 495 ((pdo_mysql_db_handle *)dbh->driver_data)->max_buffer_size = lval; in pdo_mysql_set_attribute()
|