Skip to content

Commit cf55a18

Browse files
committed
Fix conflicts
1 parent a8c369f commit cf55a18

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

ext/date/php_date.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,6 +1450,7 @@ static void initialize_date_period_properties(php_period_obj *period_obj)
14501450

14511451
zend_update_property_long(date_ce_period, &period_obj->std, "recurrences", sizeof("recurrences") - 1, (zend_long) period_obj->recurrences);
14521452
zend_update_property_bool(date_ce_period, &period_obj->std, "include_start_date", sizeof("include_start_date") - 1, period_obj->include_start_date);
1453+
zend_update_property_bool(date_ce_period, &period_obj->std, "include_end_date", sizeof("include_end_date") - 1, period_obj->include_end_date);
14531454
}
14541455

14551456
/* define an overloaded iterator structure */

ext/date/php_date.stub.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -683,14 +683,6 @@ public static function __set_state(array $array): DateInterval {}
683683

684684
class DatePeriod implements IteratorAggregate
685685
{
686-
public readonly ?DateTimeInterface $start;
687-
/** @readonly */
688-
public ?DateTimeInterface $current;
689-
public readonly ?DateTimeInterface $end;
690-
public readonly ?DateInterval $interval;
691-
public readonly int $recurrences;
692-
public readonly bool $include_start_date;
693-
694686
/**
695687
* @var int
696688
* @cname PHP_DATE_PERIOD_EXCLUDE_START_DATE
@@ -702,6 +694,15 @@ class DatePeriod implements IteratorAggregate
702694
*/
703695
public const INCLUDE_END_DATE = UNKNOWN;
704696

697+
public readonly ?DateTimeInterface $start;
698+
/** @readonly */
699+
public ?DateTimeInterface $current;
700+
public readonly ?DateTimeInterface $end;
701+
public readonly ?DateInterval $interval;
702+
public readonly int $recurrences;
703+
public readonly bool $include_start_date;
704+
public readonly bool $include_end_date;
705+
705706
/**
706707
* @param DateTimeInterface|string $start
707708
* @param DateInterval|int $interval

ext/date/php_date_arginfo.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: dc54d1976c4fb2c5d1b7ee0bfe566abc8847c554 */
2+
* Stub hash: 7ef8c504e35ca49f2c7442bd572b196587a36b7b */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_strtotime, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
55
ZEND_ARG_TYPE_INFO(0, datetime, IS_STRING, 0)
@@ -1066,5 +1066,11 @@ static zend_class_entry *register_class_DatePeriod(zend_class_entry *class_entry
10661066
zend_declare_typed_property(class_entry, property_include_start_date_name, &property_include_start_date_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
10671067
zend_string_release(property_include_start_date_name);
10681068

1069+
zval property_include_end_date_default_value;
1070+
ZVAL_UNDEF(&property_include_end_date_default_value);
1071+
zend_string *property_include_end_date_name = zend_string_init("include_end_date", sizeof("include_end_date") - 1, 1);
1072+
zend_declare_typed_property(class_entry, property_include_end_date_name, &property_include_end_date_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
1073+
zend_string_release(property_include_end_date_name);
1074+
10691075
return class_entry;
10701076
}

0 commit comments

Comments
 (0)