ChrisB: 6015

Beitrag lesen

Hi,

http://bugs.php.net/bug.php?id=49778&edit=1#c155500

Danke!

6015 scheint immer dann herauszukommen, wenn der Unterschied per ->diff() berechnet wird.

Also wohl ein Bug in der Win-Version.

Erzeugt man ein DateInterval-Objekt mit ::createFromDateString() ist der Wert für ->days immer 0.

Die Erklärung dafür,

Days is indeed not set when creating a DateInterval using the constructor. A complication with this is that it is impossible to determine the number of days when months or years are specified, since these vary in length.

ist ja nachvollziehbar.

MfG ChrisB

--
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]