Lines Matching refs:old_obj

1761 	php_date_obj *old_obj = php_date_obj_from_obj(this_ptr);  in date_object_clone_date()  local
1762 php_date_obj *new_obj = php_date_obj_from_obj(date_object_new_date(old_obj->std.ce)); in date_object_clone_date()
1764 zend_objects_clone_members(&new_obj->std, &old_obj->std); in date_object_clone_date()
1765 if (!old_obj->time) { in date_object_clone_date()
1771 *new_obj->time = *old_obj->time; in date_object_clone_date()
1772 if (old_obj->time->tz_abbr) { in date_object_clone_date()
1773 new_obj->time->tz_abbr = timelib_strdup(old_obj->time->tz_abbr); in date_object_clone_date()
1775 if (old_obj->time->tz_info) { in date_object_clone_date()
1776 new_obj->time->tz_info = old_obj->time->tz_info; in date_object_clone_date()
1896 php_timezone_obj *old_obj = php_timezone_obj_from_obj(this_ptr); in date_object_clone_timezone() local
1897 php_timezone_obj *new_obj = php_timezone_obj_from_obj(date_object_new_timezone(old_obj->std.ce)); in date_object_clone_timezone()
1899 zend_objects_clone_members(&new_obj->std, &old_obj->std); in date_object_clone_timezone()
1900 if (!old_obj->initialized) { in date_object_clone_timezone()
1904 new_obj->type = old_obj->type; in date_object_clone_timezone()
1908 new_obj->tzi.tz = old_obj->tzi.tz; in date_object_clone_timezone()
1911 new_obj->tzi.utc_offset = old_obj->tzi.utc_offset; in date_object_clone_timezone()
1914 new_obj->tzi.z.utc_offset = old_obj->tzi.z.utc_offset; in date_object_clone_timezone()
1915 new_obj->tzi.z.dst = old_obj->tzi.z.dst; in date_object_clone_timezone()
1916 new_obj->tzi.z.abbr = timelib_strdup(old_obj->tzi.z.abbr); in date_object_clone_timezone()
2055 php_interval_obj *old_obj = php_interval_obj_from_obj(this_ptr); in date_object_clone_interval() local
2056 php_interval_obj *new_obj = php_interval_obj_from_obj(date_object_new_interval(old_obj->std.ce)); in date_object_clone_interval()
2058 zend_objects_clone_members(&new_obj->std, &old_obj->std); in date_object_clone_interval()
2059 new_obj->initialized = old_obj->initialized; in date_object_clone_interval()
2060 if (old_obj->diff) { in date_object_clone_interval()
2061 new_obj->diff = timelib_rel_time_clone(old_obj->diff); in date_object_clone_interval()
2131 php_period_obj *old_obj = php_period_obj_from_obj(this_ptr); in date_object_clone_period() local
2132 php_period_obj *new_obj = php_period_obj_from_obj(date_object_new_period(old_obj->std.ce)); in date_object_clone_period()
2134 zend_objects_clone_members(&new_obj->std, &old_obj->std); in date_object_clone_period()
2135 new_obj->initialized = old_obj->initialized; in date_object_clone_period()
2136 new_obj->recurrences = old_obj->recurrences; in date_object_clone_period()
2137 new_obj->include_start_date = old_obj->include_start_date; in date_object_clone_period()
2138 new_obj->start_ce = old_obj->start_ce; in date_object_clone_period()
2140 if (old_obj->start) { in date_object_clone_period()
2141 new_obj->start = timelib_time_clone(old_obj->start); in date_object_clone_period()
2143 if (old_obj->current) { in date_object_clone_period()
2144 new_obj->current = timelib_time_clone(old_obj->current); in date_object_clone_period()
2146 if (old_obj->end) { in date_object_clone_period()
2147 new_obj->end = timelib_time_clone(old_obj->end); in date_object_clone_period()
2149 if (old_obj->interval) { in date_object_clone_period()
2150 new_obj->interval = timelib_rel_time_clone(old_obj->interval); in date_object_clone_period()
2479 php_date_obj *old_obj = NULL; in PHP_METHOD() local
2485 old_obj = Z_PHPDATE_P(datetimeimmutable_object); in PHP_METHOD()
2486 DATE_CHECK_INITIALIZED(old_obj->time, DateTimeImmutable); in PHP_METHOD()
2491 new_obj->time = timelib_time_clone(old_obj->time); in PHP_METHOD()
2500 php_date_obj *old_obj = NULL; in PHP_METHOD() local
2506 old_obj = Z_PHPDATE_P(datetimeinterface_object); in PHP_METHOD()
2507 DATE_CHECK_INITIALIZED(old_obj->time, DateTimeInterface); in PHP_METHOD()
2512 new_obj->time = timelib_time_clone(old_obj->time); in PHP_METHOD()
2521 php_date_obj *old_obj = NULL; in PHP_METHOD() local
2527 old_obj = Z_PHPDATE_P(datetime_object); in PHP_METHOD()
2528 DATE_CHECK_INITIALIZED(old_obj->time, DateTime); in PHP_METHOD()
2533 new_obj->time = timelib_time_clone(old_obj->time); in PHP_METHOD()
2542 php_date_obj *old_obj = NULL; in PHP_METHOD() local
2548 old_obj = Z_PHPDATE_P(datetimeinterface_object); in PHP_METHOD()
2549 DATE_CHECK_INITIALIZED(old_obj->time, DateTimeInterface); in PHP_METHOD()
2554 new_obj->time = timelib_time_clone(old_obj->time); in PHP_METHOD()