php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74487 DateInterval inconsistent return values
Submitted: 2017-04-22 07:16 UTC Modified: 2017-04-24 16:24 UTC
From: cristian at sneekdigital dot co dot uk Assigned:
Status: Closed Package: Date/time related
PHP Version: Irrelevant OS: All?
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cristian at sneekdigital dot co dot uk
New email:
PHP Version: OS:

 

 [2017-04-22 07:16 UTC] cristian at sneekdigital dot co dot uk
Description:
------------
When parsing full months (start to end) the return values are inconsistent with some months returning the number of days and some returning one month. The `days` property is always correct however.

We encountered this problem on MacOS and Ubuntu.

Test script:
---------------
https://3v4l.org/GHpCD


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-04-24 15:53 UTC] heiglandreas@php.net
-Status: Open +Status: Duplicate
 [2017-04-24 15:53 UTC] heiglandreas@php.net
This seems to be a duplicate of https://bugs.php.net/bug.php?id=52480
 [2017-04-24 16:24 UTC] cristian at sneekdigital dot co dot uk
-Status: Duplicate +Status: Closed
 [2017-04-24 16:24 UTC] cristian at sneekdigital dot co dot uk
Please accept my apologies. I would agree.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC