|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-11-17 11:12 UTC] derick@php.net
-Status: Open
+Status: Not a bug
[2015-11-17 11:12 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 03:00:02 2026 UTC |
Description: ------------ Passing negative time period to DateInterval::createFromDateString causes to creating DateInterval with negative values instead setting 'invert' flag Test script: --------------- $period = \DateInterval::createFromDateString('-1 day'); var_dump($period->d, $period->invert); Expected result: ---------------- int(1) int(1) Actual result: -------------- int(-1) int(0)