Throw directly instead of replacing error handler in ext/date (#6954)
Slightly improve error handling in DatePeriod::__construct()
Fix leak on failed DatePeriod initialization We need to free not only p here, but also b and e.
Fix leak in DatePeriod construction with invalid format Same issue as I fixed in DateInterval construction before.
Fix rel_date leak on DateInterval construction failure