|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2019-04-16 15:27 UTC]
[2019-04-17 08:40 UTC] derick@php.net
[2019-04-17 08:40 UTC] derick@php.net
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 01:00:01 2025 UTC |
Description: ------------ Currently when instantiating a DatePeriod object with the ISO Interval notation an exception is thrown if the recurrence count value is lesser than 1. But when using the alternate constructor no exception is thrown. This lead to the recurrence count being lesser than 1 which should not be possible. Test script: --------------- $date = new DatePeriod( new DateTime('2012-07-01T00:00:00Z'), new DateInterval('P7D'), 0 ); Expected result: ---------------- An exception should be thrown instead an invalid DatePeriod is returned.