Lines Matching refs:object

154 static void date_object_free_storage_date(zend_object *object);
155 static void date_object_free_storage_timezone(zend_object *object);
156 static void date_object_free_storage_interval(zend_object *object);
157 static void date_object_free_storage_period(zend_object *object);
170 static HashTable *date_object_get_gc(zend_object *object, zval **table, int *n);
171 static HashTable *date_object_get_properties_for(zend_object *object, zend_prop_purpose purpose);
172 static HashTable *date_object_get_gc_interval(zend_object *object, zval **table, int *n);
173 static HashTable *date_object_get_properties_interval(zend_object *object);
174 static HashTable *date_object_get_gc_period(zend_object *object, zval **table, int *n);
175 static HashTable *date_object_get_properties_period(zend_object *object);
176 static HashTable *date_object_get_properties_for_timezone(zend_object *object, zend_prop_purpose pu…
177 static HashTable *date_object_get_gc_timezone(zend_object *object, zval **table, int *n);
178 static HashTable *date_object_get_debug_info_timezone(zend_object *object, int *is_temp);
182 static zval *date_interval_read_property(zend_object *object, zend_string *member, int type, void *…
183 static zval *date_interval_write_property(zend_object *object, zend_string *member, zval *value, vo…
184 static zval *date_interval_get_property_ptr_ptr(zend_object *object, zend_string *member, int type,…
185 static zval *date_period_read_property(zend_object *object, zend_string *name, int type, void **cac…
186 static zval *date_period_write_property(zend_object *object, zend_string *name, zval *value, void *…
187 static zval *date_period_get_property_ptr_ptr(zend_object *object, zend_string *name, int type, voi…
1437 php_period_obj *object; member
1468 php_period_obj *object = Z_PHPPERIOD_P(&iterator->intern.data); in date_period_it_has_more() local
1470 if (object->end) { in date_period_it_has_more()
1471 return object->current->sse < object->end->sse ? SUCCESS : FAILURE; in date_period_it_has_more()
1473 return (iterator->current_index < object->recurrences) ? SUCCESS : FAILURE; in date_period_it_has_more()
1493 php_period_obj *object = Z_PHPPERIOD_P(&iterator->intern.data); in date_period_it_current_data() local
1494 timelib_time *it_time = object->current; in date_period_it_current_data()
1498 php_date_instantiate(get_base_date_class(object->start_ce), &iterator->current); in date_period_it_current_data()
1534 php_period_obj *object = Z_PHPPERIOD_P(&iterator->intern.data); in date_period_it_move_forward() local
1535 timelib_time *it_time = object->current; in date_period_it_move_forward()
1537 date_period_advance(it_time, object->interval); in date_period_it_move_forward()
1550 if (iterator->object->current) { in date_period_it_rewind()
1551 timelib_time_dtor(iterator->object->current); in date_period_it_rewind()
1553 if (!iterator->object->start) { in date_period_it_rewind()
1558 iterator->object->current = timelib_time_clone(iterator->object->start); in date_period_it_rewind()
1560 if (!iterator->object->include_start_date) { in date_period_it_rewind()
1561 date_period_advance(iterator->object->current, iterator->object->interval); in date_period_it_rewind()
1580 zend_object_iterator *date_object_period_get_iterator(zend_class_entry *ce, zval *object, int by_re… in date_object_period_get_iterator() argument
1593 ZVAL_OBJ_COPY(&iterator->intern.data, Z_OBJ_P(object)); in date_object_period_get_iterator()
1595 iterator->object = Z_PHPPERIOD_P(object); in date_object_period_get_iterator()
1613 static int date_interval_has_property(zend_object *object, zend_string *name, int type, void **cach… in date_interval_has_property() argument
1620 obj = php_interval_obj_from_obj(object); in date_interval_has_property()
1623 retval = zend_std_has_property(object, name, type, cache_slot); in date_interval_has_property()
1627 prop = date_interval_read_property(object, name, BP_VAR_IS, cache_slot, &rv); in date_interval_has_property()
1638 retval = zend_std_has_property(object, name, type, cache_slot); in date_interval_has_property()
1793 static void date_clone_immutable(zval *object, zval *new_object) /* {{{ */ in date_clone_immutable() argument
1795 ZVAL_OBJ(new_object, date_object_clone_date(Z_OBJ_P(object))); in date_clone_immutable()
1822 static HashTable *date_object_get_gc(zend_object *object, zval **table, int *n) /* {{{ */ in date_object_get_gc() argument
1826 return zend_std_get_properties(object); in date_object_get_gc()
1829 static HashTable *date_object_get_gc_timezone(zend_object *object, zval **table, int *n) /* {{{ */ in date_object_get_gc_timezone() argument
1833 return zend_std_get_properties(object); in date_object_get_gc_timezone()
1836 static HashTable *date_object_get_properties_for(zend_object *object, zend_prop_purpose purpose) /*… in date_object_get_properties_for() argument
1850 return zend_std_get_properties_for(object, purpose); in date_object_get_properties_for()
1853 dateobj = php_date_obj_from_obj(object); in date_object_get_properties_for()
1854 props = zend_array_dup(zend_std_get_properties(object)); in date_object_get_properties_for()
1988 static HashTable *date_object_get_properties_for_timezone(zend_object *object, zend_prop_purpose pu… in date_object_get_properties_for_timezone() argument
2002 return zend_std_get_properties_for(object, purpose); in date_object_get_properties_for_timezone()
2005 tzobj = php_timezone_obj_from_obj(object); in date_object_get_properties_for_timezone()
2006 props = zend_array_dup(zend_std_get_properties(object)); in date_object_get_properties_for_timezone()
2020 static HashTable *date_object_get_debug_info_timezone(zend_object *object, int *is_temp) /* {{{ */ in date_object_get_debug_info_timezone() argument
2026 tzobj = php_timezone_obj_from_obj(object); in date_object_get_debug_info_timezone()
2027 props = zend_std_get_properties(object); in date_object_get_debug_info_timezone()
2066 static HashTable *date_object_get_gc_interval(zend_object *object, zval **table, int *n) /* {{{ */ in date_object_get_gc_interval() argument
2071 return zend_std_get_properties(object); in date_object_get_gc_interval()
2074 static HashTable *date_object_get_properties_interval(zend_object *object) /* {{{ */ in date_object_get_properties_interval() argument
2080 intervalobj = php_interval_obj_from_obj(object); in date_object_get_properties_interval()
2081 props = zend_std_get_properties(object); in date_object_get_properties_interval()
2154 static void date_object_free_storage_date(zend_object *object) /* {{{ */ in date_object_free_storage_date() argument
2156 php_date_obj *intern = php_date_obj_from_obj(object); in date_object_free_storage_date()
2165 static void date_object_free_storage_timezone(zend_object *object) /* {{{ */ in date_object_free_storage_timezone() argument
2167 php_timezone_obj *intern = php_timezone_obj_from_obj(object); in date_object_free_storage_timezone()
2175 static void date_object_free_storage_interval(zend_object *object) /* {{{ */ in date_object_free_storage_interval() argument
2177 php_interval_obj *intern = php_interval_obj_from_obj(object); in date_object_free_storage_interval()
2183 static void date_object_free_storage_period(zend_object *object) /* {{{ */ in date_object_free_storage_period() argument
2185 php_period_obj *intern = php_period_obj_from_obj(object); in date_object_free_storage_period()
2204 PHPAPI zval *php_date_instantiate(zend_class_entry *pce, zval *object) /* {{{ */ in php_date_instantiate() argument
2206 object_init_ex(object, pce); in php_date_instantiate()
2207 return object; in php_date_instantiate()
2649 zval *object = ZEND_THIS; in PHP_METHOD() local
2655 dateobj = Z_PHPDATE_P(object); in PHP_METHOD()
2657 myht = Z_OBJPROP_P(object); in PHP_METHOD()
2668 zval *object = ZEND_THIS; in PHP_METHOD() local
2674 dateobj = Z_PHPDATE_P(object); in PHP_METHOD()
2676 myht = Z_OBJPROP_P(object); in PHP_METHOD()
2829 zval *object; in PHP_FUNCTION() local
2834 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "Os", &object, date_ce_interface, &fo… in PHP_FUNCTION()
2837 dateobj = Z_PHPDATE_P(object); in PHP_FUNCTION()
2843 static int php_date_modify(zval *object, char *modify, size_t modify_len) /* {{{ */ in php_date_modify() argument
2849 dateobj = Z_PHPDATE_P(object); in php_date_modify()
2914 zval *object; in PHP_FUNCTION() local
2918 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "Os", &object, date_ce_date, &modify,… in PHP_FUNCTION()
2922 if (!php_date_modify(object, modify, modify_len)) { in PHP_FUNCTION()
2926 RETURN_OBJ_COPY(Z_OBJ_P(object)); in PHP_FUNCTION()
2933 zval *object, new_object; in PHP_METHOD() local
2937 object = ZEND_THIS; in PHP_METHOD()
2942 date_clone_immutable(object, &new_object); in PHP_METHOD()
2952 static void php_date_add(zval *object, zval *interval, zval *return_value) /* {{{ */ in php_date_add() argument
2958 dateobj = Z_PHPDATE_P(object); in php_date_add()
2971 zval *object, *interval; in PHP_FUNCTION() local
2973 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "OO", &object, date_ce_date, &interva… in PHP_FUNCTION()
2977 php_date_add(object, interval, return_value); in PHP_FUNCTION()
2979 RETURN_OBJ_COPY(Z_OBJ_P(object)); in PHP_FUNCTION()
2986 zval *object, *interval, new_object; in PHP_METHOD() local
2988 object = ZEND_THIS; in PHP_METHOD()
2993 date_clone_immutable(object, &new_object); in PHP_METHOD()
3000 static void php_date_sub(zval *object, zval *interval, zval *return_value) /* {{{ */ in php_date_sub() argument
3006 dateobj = Z_PHPDATE_P(object); in php_date_sub()
3024 zval *object, *interval; in PHP_FUNCTION() local
3026 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "OO", &object, date_ce_date, &interva… in PHP_FUNCTION()
3030 php_date_sub(object, interval, return_value); in PHP_FUNCTION()
3032 RETURN_OBJ_COPY(Z_OBJ_P(object)); in PHP_FUNCTION()
3039 zval *object, *interval, new_object; in PHP_METHOD() local
3041 object = ZEND_THIS; in PHP_METHOD()
3046 date_clone_immutable(object, &new_object); in PHP_METHOD()
3076 zval *object; in PHP_FUNCTION() local
3079 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "O", &object, date_ce_interface) == F… in PHP_FUNCTION()
3082 dateobj = Z_PHPDATE_P(object); in PHP_FUNCTION()
3095 static void php_date_timezone_set(zval *object, zval *timezone_object, zval *return_value) /* {{{ */ in php_date_timezone_set() argument
3100 dateobj = Z_PHPDATE_P(object); in php_date_timezone_set()
3121 zval *object; in PHP_FUNCTION() local
3124 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "OO", &object, date_ce_date, &timezon… in PHP_FUNCTION()
3128 php_date_timezone_set(object, timezone_object, return_value); in PHP_FUNCTION()
3130 RETURN_OBJ_COPY(Z_OBJ_P(object)); in PHP_FUNCTION()
3137 zval *object, new_object; in PHP_METHOD() local
3140 object = ZEND_THIS; in PHP_METHOD()
3145 date_clone_immutable(object, &new_object); in PHP_METHOD()
3155 zval *object; in PHP_FUNCTION() local
3159 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "O", &object, date_ce_interface) == F… in PHP_FUNCTION()
3162 dateobj = Z_PHPDATE_P(object); in PHP_FUNCTION()
3185 static void php_date_time_set(zval *object, zend_long h, zend_long i, zend_long s, zend_long ms, zv… in php_date_time_set() argument
3189 dateobj = Z_PHPDATE_P(object); in php_date_time_set()
3202 zval *object; in PHP_FUNCTION() local
3205 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "Oll|ll", &object, date_ce_date, &h, … in PHP_FUNCTION()
3209 php_date_time_set(object, h, i, s, ms, return_value); in PHP_FUNCTION()
3211 RETURN_OBJ_COPY(Z_OBJ_P(object)); in PHP_FUNCTION()
3218 zval *object, new_object; in PHP_METHOD() local
3221 object = ZEND_THIS; in PHP_METHOD()
3226 date_clone_immutable(object, &new_object); in PHP_METHOD()
3233 static void php_date_date_set(zval *object, zend_long y, zend_long m, zend_long d, zval *return_val… in php_date_date_set() argument
3237 dateobj = Z_PHPDATE_P(object); in php_date_date_set()
3248 zval *object; in PHP_FUNCTION() local
3251 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "Olll", &object, date_ce_date, &y, &m… in PHP_FUNCTION()
3255 php_date_date_set(object, y, m, d, return_value); in PHP_FUNCTION()
3257 RETURN_OBJ_COPY(Z_OBJ_P(object)); in PHP_FUNCTION()
3264 zval *object, new_object; in PHP_METHOD() local
3267 object = ZEND_THIS; in PHP_METHOD()
3272 date_clone_immutable(object, &new_object); in PHP_METHOD()
3279 static void php_date_isodate_set(zval *object, zend_long y, zend_long w, zend_long d, zval *return_… in php_date_isodate_set() argument
3283 dateobj = Z_PHPDATE_P(object); in php_date_isodate_set()
3298 zval *object; in PHP_FUNCTION() local
3301 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "Oll|l", &object, date_ce_date, &y, &… in PHP_FUNCTION()
3305 php_date_isodate_set(object, y, w, d, return_value); in PHP_FUNCTION()
3307 RETURN_OBJ_COPY(Z_OBJ_P(object)); in PHP_FUNCTION()
3314 zval *object, new_object; in PHP_METHOD() local
3317 object = ZEND_THIS; in PHP_METHOD()
3322 date_clone_immutable(object, &new_object); in PHP_METHOD()
3329 static void php_date_timestamp_set(zval *object, zend_long timestamp, zval *return_value) /* {{{ */ in php_date_timestamp_set() argument
3333 dateobj = Z_PHPDATE_P(object); in php_date_timestamp_set()
3343 zval *object; in PHP_FUNCTION() local
3346 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "Ol", &object, date_ce_date, &timesta… in PHP_FUNCTION()
3350 php_date_timestamp_set(object, timestamp, return_value); in PHP_FUNCTION()
3352 RETURN_OBJ_COPY(Z_OBJ_P(object)); in PHP_FUNCTION()
3359 zval *object, new_object; in PHP_METHOD() local
3362 object = ZEND_THIS; in PHP_METHOD()
3367 date_clone_immutable(object, &new_object); in PHP_METHOD()
3377 zval *object; in PHP_FUNCTION() local
3382 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "O", &object, date_ce_interface) == F… in PHP_FUNCTION()
3385 dateobj = Z_PHPDATE_P(object); in PHP_FUNCTION()
3549 zval *object = ZEND_THIS; in PHP_METHOD() local
3555 tzobj = Z_PHPTIMEZONE_P(object); in PHP_METHOD()
3557 myht = Z_OBJPROP_P(object); in PHP_METHOD()
3568 zval *object; in PHP_FUNCTION() local
3571 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "O", &object, date_ce_timezone) == FA… in PHP_FUNCTION()
3574 tzobj = Z_PHPTIMEZONE_P(object); in PHP_FUNCTION()
3608 zval *object, *dateobject; in PHP_FUNCTION() local
3613 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "OO", &object, date_ce_timezone, &dat… in PHP_FUNCTION()
3616 tzobj = Z_PHPTIMEZONE_P(object); in PHP_FUNCTION()
3640 zval *object, element; in PHP_FUNCTION() local
3645 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "O|ll", &object, date_ce_timezone, &t… in PHP_FUNCTION()
3648 tzobj = Z_PHPTIMEZONE_P(object); in PHP_FUNCTION()
3719 zval *object; in PHP_FUNCTION() local
3722 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "O", &object, date_ce_timezone) == FA… in PHP_FUNCTION()
3725 tzobj = Z_PHPTIMEZONE_P(object); in PHP_FUNCTION()
3787 static zval *date_interval_read_property(zend_object *object, zend_string *name, int type, void **c… in date_interval_read_property() argument
3794 obj = php_interval_obj_from_obj(object); in date_interval_read_property()
3797 retval = zend_std_read_property(object, name, type, cache_slot, rv); in date_interval_read_property()
3820 retval = zend_std_read_property(object, name, type, cache_slot, rv); in date_interval_read_property()
3840 static zval *date_interval_write_property(zend_object *object, zend_string *name, zval *value, void… in date_interval_write_property() argument
3844 obj = php_interval_obj_from_obj(object); in date_interval_write_property()
3847 return zend_std_write_property(object, name, value, cache_slot); in date_interval_write_property()
3869 value = zend_std_write_property(object, name, value, cache_slot); in date_interval_write_property()
3877 static zval *date_interval_get_property_ptr_ptr(zend_object *object, zend_string *name, int type, v… in date_interval_get_property_ptr_ptr() argument
3893 ret = zend_std_get_property_ptr_ptr(object, name, type, cache_slot); in date_interval_get_property_ptr_ptr()
4021 zval *object = ZEND_THIS; in PHP_METHOD() local
4027 intobj = Z_PHPINTERVAL_P(object); in PHP_METHOD()
4029 myht = Z_OBJPROP_P(object); in PHP_METHOD()
4140 zval *object; in PHP_FUNCTION() local
4145 …if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "Os", &object, date_ce_interval, &for… in PHP_FUNCTION()
4148 diobj = Z_PHPINTERVAL_P(object); in PHP_FUNCTION()
4740 static HashTable *date_object_get_gc_period(zend_object *object, zval **table, int *n) /* {{{ */ in date_object_get_gc_period() argument
4744 return zend_std_get_properties(object); in date_object_get_gc_period()
4747 static HashTable *date_object_get_properties_period(zend_object *object) /* {{{ */ in date_object_get_properties_period() argument
4753 period_obj = php_period_obj_from_obj(object); in date_object_get_properties_period()
4754 props = zend_std_get_properties(object); in date_object_get_properties_period()
4914 zval *object = ZEND_THIS; in PHP_METHOD() local
4920 period_obj = Z_PHPPERIOD_P(object); in PHP_METHOD()
4922 myht = Z_OBJPROP_P(object); in PHP_METHOD()
4949 static zval *date_period_read_property(zend_object *object, zend_string *name, int type, void **cac… in date_period_read_property() argument
4958 object->handlers->get_properties(object); /* build properties hash table */ in date_period_read_property()
4960 return zend_std_read_property(object, name, type, cache_slot, rv); in date_period_read_property()
4965 static zval *date_period_write_property(zend_object *object, zend_string *name, zval *value, void *… in date_period_write_property() argument
4972 return zend_std_write_property(object, name, value, cache_slot); in date_period_write_property()
4977 static zval *date_period_get_property_ptr_ptr(zend_object *object, zend_string *name, int type, voi… in date_period_get_property_ptr_ptr() argument
4984 return zend_std_get_property_ptr_ptr(object, name, type, cache_slot); in date_period_get_property_ptr_ptr()