Edit report at https://bugs.php.net/bug.php?id=51894&edit=1
ID: 51894 Updated by: [email protected] Reported by: ronald dot fischer at ummanzer dot de Summary: DateTime::Diff breaks range() -Status: Feedback +Status: No Feedback Type: Bug Package: Date/time related Operating System: Windows 7 Home Premium 64bit PHP Version: 5.3.2 New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2011-08-10 10:35:08] chris at gedrim dot co dot uk I can confirm v5.3.6 fixes the problem. ------------------------------------------------------------------------ [2011-08-10 09:23:00] chris at gedrim dot co dot uk I'm experiencing this issue with php v5.3.5 on Windows 7 Pro x64. Just about to try the snapshot suggested. ------------------------------------------------------------------------ [2010-05-24 11:44:37] [email protected] Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2010-05-23 22:34:19] ronald dot fischer at ummanzer dot de 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) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=51894&edit=1
