Edit report at https://bugs.php.net/bug.php?id=48187&edit=1
ID: 48187 Updated by: php-bugs@lists.php.net Reported by: wavetrex at gmail dot com Summary: DateTime::diff() corrupting microtime() result -Status: Feedback +Status: No Feedback Type: Bug Package: Date/time related Operating System: Windows 2003 Server PHP Version: 5.3.0RC2 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-01-30 11:26:12] s...@php.net Is it VC6-based build? If yes, could you try a VC9-based build instead? ------------------------------------------------------------------------ [2010-08-13 20:59:29] alpha_centurion at hotmail dot com Reproduced on Win32 XP SP3 with Apache 2.2.15 and php 5.3.2-Win32-VC6-x86 Only seems to impact web requests as same script (by jani) does not evidence the same error when run on the command line. ------------------------------------------------------------------------ [2010-08-10 07:01:03] jasonjoo dot god at gmail dot com my test script below: <?php date_default_timezone_set("Asia/Chongqing"); echo microtime(true); echo "\n"; $now=new DateTime(); $now->diff(new DateTime()); echo microtime(true); ?> and my os is win32/xp I found this isue can be reproduced under apache in handler mode, but it is no isue in command line mode(eg. php test.php). for example, I got its output like this: 1281415176.9756 1281402595.446 and the wrong one only change the part following dot my php version is 5.3.3 ------------------------------------------------------------------------ [2010-07-18 00:47:15] k.schroe...@php.net Automatic comment from SVN on behalf of k.schroeder Revision: http://svn.php.net/viewvc/?view=revision&revision=301359 Log: Test for #48187 ------------------------------------------------------------------------ [2009-05-10 01:41:59] wavetrex at gmail dot com float(1241919300.3593) float(1241709350.3736) int(1241919300) int(1241919300) string(25) "2009-05-10T04:35:00+03:00" string(25) "2009-05-10T04:35:00+03:00" ( http://wt.ath.cx/jani.php ) Note: 1241709350 -> this value seems to stay almost unchanged over time (look at my first submission: string(21) "0.25882200 1241709345" ) When I reported the difference was ~50000 seconds, now it's over 200.000 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=48187 -- Edit this bug report at https://bugs.php.net/bug.php?id=48187&edit=1