Doc #52015 [Csd]: Ending date is ignored while iterating DatePeriod

From: Date: Fri, 20 May 2022 10:19:13 +0000
Subject: Doc #52015 [Csd]: Ending date is ignored while iterating DatePeriod
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-19437@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=52015&edit=1

 ID:                 52015
 Updated by:         derick@php.net
 Reported by:        ko dot fivestar at gmail dot com
 Summary:            Ending date is ignored while iterating DatePeriod
 Status:             Closed
 Type:               Documentation Problem
 Package:            Date/time related
 Operating System:   Ubuntu 10.04
 PHP Version:        5.3.2
 Assigned To:        derick
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php

For PHP 8.2.


Previous Comments:
------------------------------------------------------------------------
[2022-05-20 10:18:53] git@php.net

Automatic comment on behalf of derickr
Revision: https://github.com/php/php-src/commit/c0c801d23813f6d485e64ea866654ff0798517e0
Log: Fixed bug #52015 (Allow including end date in DatePeriod iterations)

------------------------------------------------------------------------
[2022-05-13 13:29:57] derick@php.net

https://github.com/php/php-src/pull/8550
— for inclusion into PHP 8.2.

------------------------------------------------------------------------
[2020-04-02 09:13:29] cmb@php.net

I can't assess what would be the proper behavior, given that
DatePeriod appears to be quirky in this regard[1], but at the very
least the current behavior should be documented.

[1] <https://3v4l.org/1kYQI>

------------------------------------------------------------------------
[2016-01-22 12:57:15] aivaras at voveris dot eu

Exactly same issue as described by ko dot fivestar at gmail dot com happens on OSX PHP v5.6.11

php -v
PHP 5.6.11 (cli) (built: Jul 10 2015 22:36:04) 
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
    with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans

Is there any estimate on when this is going to be resolved?

------------------------------------------------------------------------
[2014-01-29 11:38:12] boogerlad at gmail dot com

Now that this option exists, how would you use both DatePeriod::EXCLUDE_START_DATE and
DatePeriod::INCLUDE_END_DATE?

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=52015


--
Edit this bug report at https://bugs.php.net/bug.php?id=52015&edit=1


Thread (5 messages)

« previous php.doc.bugs (#19437) next »