Lines Matching refs:i

35 static __inline __int64 php_date_llabs( __int64 i ) { return i >= 0? i: -i; }  in php_date_llabs()  argument
37 static __inline __int64_t php_date_llabs( __int64_t i ) { return i >= 0 ? i : -i; } in php_date_llabs() argument
39 static inline long long php_date_llabs( long long i ) { return i >= 0 ? i : -i; } in php_date_llabs() argument
44 # define DATE_I64A(i, s, len) _i64toa_s(i, s, len, 10) argument
45 # define DATE_A64I(i, s) i = _atoi64(s) argument
48 # define DATE_I64A(i, s, len) \ argument
50 int st = snprintf(s, len, "%lld", i); \
54 # define DATE_A64I(i, s) i = atoll(s) argument
56 # define DATE_A64I(i, s) i = strtoll(s, NULL, 10) argument
1062 int i, length = 0; in date_format() local
1095 for (i = 0; i < format_len; i++) { in date_format()
1097 switch (format[i]) { in date_format()
1144 case 'i': length = slprintf(buffer, 32, "%02d", (int) t->i); break; in date_format()
1184 (int) t->h, (int) t->i, (int) t->s, in date_format()
1193 (int) t->y, (int) t->h, (int) t->i, (int) t->s, in date_format()
1201 case '\\': if (i < format_len) i++; /* break intentionally missing */ in date_format()
1203 default: buffer[0] = format[i]; buffer[1] = '\0'; length = 1; break; in date_format()
1339 case 'i': retval = (int) t->i; break; in php_idate()
1546 now->i = min; in php_mktime()
1662 ta.tm_min = ts->i; in php_strftime()
1770 add_assoc_long(return_value, "tm_min", ts->i); in PHP_FUNCTION()
1780 add_next_index_long(return_value, ts->i); in PHP_FUNCTION()
1815 add_assoc_long(return_value, "minutes", ts->i); in PHP_FUNCTION()
2429 PHP_DATE_INTERVAL_ADD_PROPERTY("i", i); in date_object_get_properties_interval()
2894 int i; in zval_from_error_container() local
2900 for (i = 0; i < error->warning_count; i++) { in zval_from_error_container()
2901 …add_index_string(element, error->warning_messages[i].position, error->warning_messages[i].message,… in zval_from_error_container()
2908 for (i = 0; i < error->error_count; i++) { in zval_from_error_container()
2909 add_index_string(element, error->error_messages[i].position, error->error_messages[i].message, 1); in zval_from_error_container()
2943 PHP_DATE_PARSE_DATE_SET_TIME_ELEMENT(minute, i); in php_date_do_return_parsed_time()
2987 add_assoc_long(element, "minute", parsed_time->relative.i); in php_date_do_return_parsed_time()
3101 if (tmp_time->i != -99999) { in php_date_modify()
3102 dateobj->time->i = tmp_time->i; in php_date_modify()
3109 dateobj->time->i = 0; in php_date_modify()
3407 static void php_date_time_set(zval *object, long h, long i, long s, zval *return_value TSRMLS_DC) in php_date_time_set() argument
3414 dateobj->time->i = i; in php_date_time_set()
3425 long h, i, s = 0; in PHP_FUNCTION() local
3427 …ers(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oll|l", &object, date_ce_date, &h, &i, &s) == FAILURE) { in PHP_FUNCTION()
3431 php_date_time_set(object, h, i, s, return_value TSRMLS_CC); in PHP_FUNCTION()
3442 long h, i, s = 0; in PHP_METHOD() local
3444 …END_NUM_ARGS() TSRMLS_CC, getThis(), "Oll|l", &object, date_ce_immutable, &h, &i, &s) == FAILURE) { in PHP_METHOD()
3449 php_date_time_set(new_object, h, i, s, return_value TSRMLS_CC); in PHP_METHOD()
3873 unsigned int i, begin = 0, found; in PHP_FUNCTION() local
3895 #define add(i,ts) \ in PHP_FUNCTION() argument
3900 add_assoc_long(element, "offset", tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].offset); \ in PHP_FUNCTION()
3901 add_assoc_bool(element, "isdst", tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].isdst); \ in PHP_FUNCTION()
3902 …r", &tzobj->tzi.tz->timezone_abbr[tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].abbr_idx], 1); \ in PHP_FUNCTION()
3939 for (i = begin; i < tzobj->tzi.tz->bit32.timecnt; ++i) { in PHP_FUNCTION()
3940 if (tzobj->tzi.tz->trans[i] < timestamp_end) { in PHP_FUNCTION()
3941 add(i, tzobj->tzi.tz->trans[i]); in PHP_FUNCTION()
4042 GET_VALUE_FROM_STRUCT(i, "i"); in date_interval_read_property()
4117 SET_VALUE_FROM_STRUCT(i, "i"); in date_interval_write_property()
4193 PHP_DATE_INTERVAL_READ_PROPERTY("i", i, timelib_sll, -1) in php_date_interval_initialize_from_hash()
4274 int i, length, have_format_spec = 0; in date_interval_format() local
4281 for (i = 0; i < format_len; i++) { in date_interval_format()
4283 switch (format[i]) { in date_interval_format()
4296 case 'I': length = slprintf(buffer, 32, "%02d", (int) t->i); break; in date_interval_format()
4297 case 'i': length = slprintf(buffer, 32, "%d", (int) t->i); break; in date_interval_format()
4313 default: buffer[0] = '%'; buffer[1] = format[i]; buffer[2] = '\0'; length = 2; break; in date_interval_format()
4318 if (format[i] == '%') { in date_interval_format()
4321 smart_str_appendc(&string, format[i]); in date_interval_format()
4487 int i, item_count; in PHP_FUNCTION() local
4508 for (i = 0; i < item_count; ++i) { in PHP_FUNCTION()
4510 if (tzdb->data[table[i].pos + 5] == option[0] && tzdb->data[table[i].pos + 6] == option[1]) { in PHP_FUNCTION()
4511 add_next_index_string(return_value, table[i].id, 1); in PHP_FUNCTION()
4513 …HP_DATE_TIMEZONE_GROUP_ALL_W_BC || (check_id_allowed(table[i].id, what) && (tzdb->data[table[i].po… in PHP_FUNCTION()
4514 add_next_index_string(return_value, table[i].id, 1); in PHP_FUNCTION()