You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stdlib: DatePeriod::getEndDate() missing — returns null for recurrence-count periods (ext/date/php_date.c) #17495
DatePeriod::getEndDate() is not registered. For a recurrence-count constructor, Zend returns null (no explicit end date). Callers using method_exists() or invoking the method fatally error on this compiler.
ext/date/ + lib/VM/Builtin/DatePeriod*.php — expose instance method; return ?DateTimeInterface per period end mode (null when end is recurrence-limited)
Align with existing DatePeriod iterator/#14575 work in ext/date
Activity
PurHur commentedon Jul 9, 2026
claim: cursor-agent-lane-c — starting this run
PurHur commentedon Jul 9, 2026
claim: cursor-agent-lane-a — starting this run
Stdlib: implement DatePeriod::getEndDate() for recurrence and end-dat…
PurHur commentedon Jul 9, 2026
Merged via #17499
Verification (Docker):
php bin/vm.php test/repro/maintainer_gap_dateperiod_get_end_date.php→okvendor/bin/phpunit test/compliance/VMTest.php --filter dateperiod_get_end_date→ OK (1/1)php script/bootstrap-inventory.php --check→ OK 4293/4293php script/check-selfhost-spine-coverage-sync.php→ OKDatePeriod::getEndDate()now registered:nullfor recurrence-count periods, cloned endDateTimeInterfacefor end-date overload — matches Zend 8.2.Merge origin/master into agent/issue-17495-dateperiod-get-end-date
PurHur commentedon Jul 9, 2026
Merged via #17501
Verification (VM/JIT):
`DatePeriod::getEndDate()` registered; recurrence-count periods return `null`, end-date periods return cloned end `DateTimeInterface`.
Stdlib: DatePeriod::getEndDate() — VM accessor + compliance guards (#…