|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-05-24 11:44 UTC] derick@php.net
-Status: Open
+Status: Feedback
[2010-05-24 11:44 UTC] derick@php.net
[2011-08-10 09:23 UTC] chris at gedrim dot co dot uk
[2011-08-10 10:35 UTC] chris at gedrim dot co dot uk
[2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 16:00:01 2025 UTC |
Description: ------------ After calling DateTime::Diff() the first call to range() fails and issues a warning. Test script: --------------- date_default_timezone_set('Europe/Paris'); $dt = new DateTime('2010-10-10'); $dt->diff(new DateTime('2010-12-12')); range(0,-1,1); Expected result: ---------------- array(2) { [0]=> int(0) [1]=> int(-1) } Actual result: -------------- Warning: range(): step exceeds the specified range bool(false)