Lines Matching refs:dpobj

5045 static bool date_period_init_iso8601_string(php_period_obj *dpobj, zend_class_entry* base_ce, char …  in date_period_init_iso8601_string()  argument
5047 …if (!date_period_initialize(&(dpobj->start), &(dpobj->end), &(dpobj->interval), recurrences, isost… in date_period_init_iso8601_string()
5051 if (dpobj->start == NULL) { in date_period_init_iso8601_string()
5057 if (dpobj->interval == NULL) { in date_period_init_iso8601_string()
5063 if (dpobj->end == NULL && recurrences == 0) { in date_period_init_iso8601_string()
5070 if (dpobj->start) { in date_period_init_iso8601_string()
5071 timelib_update_ts(dpobj->start, NULL); in date_period_init_iso8601_string()
5073 if (dpobj->end) { in date_period_init_iso8601_string()
5074 timelib_update_ts(dpobj->end, NULL); in date_period_init_iso8601_string()
5076 dpobj->start_ce = base_ce; in date_period_init_iso8601_string()
5081 static bool date_period_init_finish(php_period_obj *dpobj, zend_long options, zend_long recurrences) in date_period_init_finish() argument
5085 if (dpobj->end == NULL && (recurrences < 1 || recurrences > max_recurrences)) { in date_period_init_finish()
5093 dpobj->include_start_date = !(options & PHP_DATE_PERIOD_EXCLUDE_START_DATE); in date_period_init_finish()
5094 dpobj->include_end_date = options & PHP_DATE_PERIOD_INCLUDE_END_DATE; in date_period_init_finish()
5097 recurrences += dpobj->include_start_date + dpobj->include_end_date; in date_period_init_finish()
5106 dpobj->recurrences = (int)recurrences; in date_period_init_finish()
5108 dpobj->initialized = 1; in date_period_init_finish()
5115 php_period_obj *dpobj; in PHP_METHOD() local
5127 dpobj = Z_PHPPERIOD_P(return_value); in PHP_METHOD()
5129 dpobj->current = NULL; in PHP_METHOD()
5131 …if (!date_period_init_iso8601_string(dpobj, date_ce_immutable, isostr, isostr_len, options, &recur… in PHP_METHOD()
5135 if (!date_period_init_finish(dpobj, options, recurrences)) { in PHP_METHOD()
5143 php_period_obj *dpobj; in PHP_METHOD() local
5160 dpobj = Z_PHPPERIOD_P(ZEND_THIS); in PHP_METHOD()
5161 dpobj->current = NULL; in PHP_METHOD()
5170 …if (!date_period_init_iso8601_string(dpobj, date_ce_date, isostr, isostr_len, options, &recurrence… in PHP_METHOD()
5193 dpobj->start = clone; in PHP_METHOD()
5194 dpobj->start_ce = Z_OBJCE_P(start); in PHP_METHOD()
5197 dpobj->interval = timelib_rel_time_clone(intobj->diff); in PHP_METHOD()
5203 dpobj->end = clone; in PHP_METHOD()
5207 if (!date_period_init_finish(dpobj, options, recurrences)) { in PHP_METHOD()
5216 php_period_obj *dpobj; in PHP_METHOD() local
5221 dpobj = Z_PHPPERIOD_P(ZEND_THIS); in PHP_METHOD()
5222 DATE_CHECK_INITIALIZED(dpobj->start, Z_OBJCE_P(ZEND_THIS)); in PHP_METHOD()
5224 php_date_instantiate(dpobj->start_ce, return_value); in PHP_METHOD()
5227 *dateobj->time = *dpobj->start; in PHP_METHOD()
5228 if (dpobj->start->tz_abbr) { in PHP_METHOD()
5229 dateobj->time->tz_abbr = timelib_strdup(dpobj->start->tz_abbr); in PHP_METHOD()
5231 if (dpobj->start->tz_info) { in PHP_METHOD()
5232 dateobj->time->tz_info = dpobj->start->tz_info; in PHP_METHOD()
5240 php_period_obj *dpobj; in PHP_METHOD() local
5245 dpobj = Z_PHPPERIOD_P(ZEND_THIS); in PHP_METHOD()
5247 if (!dpobj->end) { in PHP_METHOD()
5251 php_date_instantiate(dpobj->start_ce, return_value); in PHP_METHOD()
5254 *dateobj->time = *dpobj->end; in PHP_METHOD()
5255 if (dpobj->end->tz_abbr) { in PHP_METHOD()
5256 dateobj->time->tz_abbr = timelib_strdup(dpobj->end->tz_abbr); in PHP_METHOD()
5258 if (dpobj->end->tz_info) { in PHP_METHOD()
5259 dateobj->time->tz_info = dpobj->end->tz_info; in PHP_METHOD()
5267 php_period_obj *dpobj; in PHP_METHOD() local
5272 dpobj = Z_PHPPERIOD_P(ZEND_THIS); in PHP_METHOD()
5273 DATE_CHECK_INITIALIZED(dpobj->interval, Z_OBJCE_P(ZEND_THIS)); in PHP_METHOD()
5277 diobj->diff = timelib_rel_time_clone(dpobj->interval); in PHP_METHOD()
5285 php_period_obj *dpobj; in PHP_METHOD() local
5289 dpobj = Z_PHPPERIOD_P(ZEND_THIS); in PHP_METHOD()
5291 if (0 == dpobj->recurrences - dpobj->include_start_date - dpobj->include_end_date) { in PHP_METHOD()
5295 RETURN_LONG(dpobj->recurrences - dpobj->include_start_date - dpobj->include_end_date); in PHP_METHOD()