Lines Matching refs:intervalobj
2159 static void date_interval_object_to_hash(php_interval_obj *intervalobj, HashTable *props) in date_interval_object_to_hash() argument
2164 if (intervalobj->from_string) { in date_interval_object_to_hash()
2165 ZVAL_BOOL(&zv, (bool)intervalobj->from_string); in date_interval_object_to_hash()
2167 ZVAL_STR_COPY(&zv, intervalobj->date_string); in date_interval_object_to_hash()
2173 ZVAL_LONG(&zv, (zend_long)intervalobj->diff->f); \ in date_interval_object_to_hash()
2182 ZVAL_DOUBLE(&zv, (double)intervalobj->diff->us / 1000000.0); in date_interval_object_to_hash()
2185 if (intervalobj->diff->days != TIMELIB_UNSET) { in date_interval_object_to_hash()
2191 ZVAL_BOOL(&zv, (bool)intervalobj->from_string); in date_interval_object_to_hash()
2200 php_interval_obj *intervalobj; in date_object_get_properties_interval() local
2202 intervalobj = php_interval_obj_from_obj(object); in date_object_get_properties_interval()
2204 if (!intervalobj->initialized) { in date_object_get_properties_interval()
2208 date_interval_object_to_hash(intervalobj, props); in date_object_get_properties_interval()
4758 php_interval_obj *intervalobj; in PHP_METHOD() local
4763 intervalobj = Z_PHPINTERVAL_P(object); in PHP_METHOD()
4764 DATE_CHECK_INITIALIZED(intervalobj->initialized, Z_OBJCE_P(object)); in PHP_METHOD()
4768 date_interval_object_to_hash(intervalobj, myht); in PHP_METHOD()
4770 add_common_properties(myht, &intervalobj->std); in PHP_METHOD()
4812 php_interval_obj *intervalobj; in PHP_METHOD() local
4820 intervalobj = Z_PHPINTERVAL_P(object); in PHP_METHOD()
4823 php_date_interval_initialize_from_hash(&object, &intervalobj, myht); in PHP_METHOD()