Lines Matching refs:intervalobj
2196 static void date_interval_object_to_hash(php_interval_obj *intervalobj, HashTable *props) in date_interval_object_to_hash() argument
2201 if (intervalobj->from_string) { in date_interval_object_to_hash()
2202 ZVAL_BOOL(&zv, (bool)intervalobj->from_string); in date_interval_object_to_hash()
2204 ZVAL_STR_COPY(&zv, intervalobj->date_string); in date_interval_object_to_hash()
2210 ZVAL_LONG(&zv, (zend_long)intervalobj->diff->f); \ in date_interval_object_to_hash()
2219 ZVAL_DOUBLE(&zv, (double)intervalobj->diff->us / 1000000.0); in date_interval_object_to_hash()
2222 if (intervalobj->diff->days != TIMELIB_UNSET) { in date_interval_object_to_hash()
2228 ZVAL_BOOL(&zv, (bool)intervalobj->from_string); in date_interval_object_to_hash()
2237 php_interval_obj *intervalobj; in date_object_get_properties_interval() local
2239 intervalobj = php_interval_obj_from_obj(object); in date_object_get_properties_interval()
2241 if (!intervalobj->initialized) { in date_object_get_properties_interval()
2245 date_interval_object_to_hash(intervalobj, props); in date_object_get_properties_interval()
4800 php_interval_obj *intervalobj; in PHP_METHOD() local
4805 intervalobj = Z_PHPINTERVAL_P(object); in PHP_METHOD()
4806 DATE_CHECK_INITIALIZED(intervalobj->initialized, Z_OBJCE_P(object)); in PHP_METHOD()
4810 date_interval_object_to_hash(intervalobj, myht); in PHP_METHOD()
4812 add_common_properties(myht, &intervalobj->std); in PHP_METHOD()
4854 php_interval_obj *intervalobj; in PHP_METHOD() local
4862 intervalobj = Z_PHPINTERVAL_P(object); in PHP_METHOD()
4865 php_date_interval_initialize_from_hash(&object, &intervalobj, myht); in PHP_METHOD()