Home
last modified time | relevance | path

Searched refs:lval (Results 1 – 25 of 61) sorted by relevance

123

/php-src/ext/bcmath/libbcmath/src/
H A Dlong2num.c23 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 Dzend_multiply.h32 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 Dzend_constants.h52 #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 Dzend_ini_scanner.l282 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 Dzend_operators.c396 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()
2732 zend_long lval; in decrement_function() local
[all …]
H A Dzend_ini_parser.y295 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()
H A Dzend_execute.c726 zend_long lval; in zend_verify_weak_scalar_type_hint() local
787 zend_long lval; in zend_verify_weak_scalar_type_hint_no_sideeffect() local
2586 value->lval = 0; in slow_index_convert()
2589 value->lval = 1; in slow_index_convert()
2660 value->lval = 0; in slow_index_convert_w()
2663 value->lval = 1; in slow_index_convert_w()
2743 hval = val.lval; in zend_fetch_dimension_address_inner()
3139 zend_long lval; in zend_isset_dim_slow() local
3147 if (EXPECTED(lval >= 0) && (size_t)lval < Z_STRLEN_P(container)) { in zend_isset_dim_slow()
3178 zend_long lval; in zend_isempty_dim_slow() local
[all …]
/php-src/ext/sockets/
H A Dsockaddr_conv.c64 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 Dconversions.c371 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 Dnodelist.c261 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 Dhtml_collection.c118 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 Dnodelist.h28 zend_long lval; member
/php-src/ext/intl/collator/
H A Dcollator_is_numeric.c207 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 Dcollator_is_numeric.h23 uint8_t collator_is_numeric( UChar *str, int32_t length, zend_long *lval, double *dval, bool allow_…
H A Dcollator_convert.c312 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 Dpdo_dbh.c780 *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 Dmysqlnd_ps_codec.c130 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 Ddblib_driver.c282 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 Dconverter.c159 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 Dspl_heap.c174 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 Ddateformat_format_object.cpp54 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 Dbcmath.c160 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 Dfirebird_driver.c1036 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 Dsqlite_driver.c297 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/pdo_mysql/
H A Dmysql_driver.c422 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()

Completed in 93 milliseconds

123