Bug #67866 [Fbk->NoF]: Incompataility Between PHP 5.4.29 And 5.4.30+

From: Date: Tue, 30 Dec 2014 10:42:43 +0000
Subject: Bug #67866 [Fbk->NoF]: Incompataility Between PHP 5.4.29 And 5.4.30+
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189494@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67866&edit=1 ID: 67866 Updated by: php-bugs@lists.php.net Reported by: graham at mineuk dot com Summary: Incompataility Between PHP 5.4.29 And 5.4.30+ -Status: Feedback +Status: No Feedback Type: Bug Package: Date/time related PHP Version: 5.4.30, 5.5.14 Assigned To: derick Private report: N 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 "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2014-11-10 16:00:01] lowwa132 at free dot fr The format actually changes a lot of things. With a webservice for example, we need consistency between versions if we encode and provide DateTime directly in json. ------------------------------------------------------------------------ [2014-08-20 09:42:56] derick@php.net I am not sure what the problem is. Not having microseconds in there was a bug. ------------------------------------------------------------------------ [2014-08-19 17:13:39] requinix@php.net Related To: Bug #67838 ------------------------------------------------------------------------ [2014-08-19 15:16:36] graham at mineuk dot com Description: ------------ The following code: ``` <?php $dt = new DateTime(); $dt->setTimestamp(1234567890); var_dump($dt->modify('4 year')); ``` results in the following in php 5.4.29: ``` object(DateTime)#1 (3) { ["date"]=> string(19) "2013-02-14 00:31:30" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ``` but in php 5.4.30 and 5.4.31: ``` object(DateTime)#1 (3) { ["date"]=> string(26) "2013-02-14 00:31:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ``` Test script: --------------- <?php $dt = new DateTime(); $dt->setTimestamp(1234567890); var_dump($dt->modify('4 year')); Expected result: ---------------- object(DateTime)#1 (3) { ["date"]=> string(19) "2013-02-14 00:31:30" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Actual result: -------------- object(DateTime)#1 (3) { ["date"]=> string(26) "2013-02-14 00:31:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67866&edit=1

« previous php.bugs (#189494) next »