]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-5.5' into PHP-5.6
authorAdam Harvey <aharvey@php.net>
Wed, 21 May 2014 20:05:08 +0000 (15:05 -0500)
committerAdam Harvey <aharvey@php.net>
Wed, 21 May 2014 20:05:08 +0000 (15:05 -0500)
* PHP-5.5:
  Add microseconds to the serialised form of DateTime objects.

1  2 
NEWS
ext/date/php_date.c
ext/date/tests/DateTimeImmutable_createFromMutable.phpt

diff --cc NEWS
index abb3708d0ca47c5f57b410730fd299625577d435,df234c0fede890e6b9459a34b682fe1d9a5863e2..6d546cb5fb4c0a2e9df5e41f395a4c50bc80931e
--- 1/NEWS
--- 2/NEWS
+++ b/NEWS
@@@ -1,13 -1,25 +1,17 @@@
  PHP                                                                        NEWS
  |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 -?? ??? 2014, PHP 5.5.14
 +?? ??? 2014, PHP 5.6.0 Beta 4
  
 -?? ??? 2014, PHP 5.5.13
 -
 -- CLI server:
 -  . Fixed bug #67079 (Missing MIME types for XML/XSL files). (Anatol)
 -
 -- COM:
 -  . Fixed bug #66431 (Special Character via COM Interface (CP_UTF8)). (Anatol)
+ - Date:
+   . Fixed bug #67308 (Serialize of DateTime truncates fractions of second).
+     (Adam)
 +15 May 2014, PHP 5.6.0 Beta 3
  
  - Core:
 -  . Fixed bug #65701 (copy() doesn't work when destination filename is created
 -    by tempnam()). (Boro Sitnikovski)
 -  . Fixed bug #67072 (Echoing unserialized "SplFileObject" crash). (Anatol)
 -  . Fixed bug #67245 (usage of memcpy() with overlapping src and dst in
 -    zend_exceptions.c). (Bob)
 +  . Fixed bug #67169 (array_splice all elements, then []= gives wrong index).
 +    (Nikita)
 +  . Fixed bug #67198 (php://input regression). (Mike)
    . Fixed bug #67247 (spl_fixedarray_resize integer overflow). (Stas)
    . Fixed bug #67250 (iptcparse out-of-bounds read). (Stas)
    . Fixed bug #67252 (convert_uudecode out-of-bounds read). (Stas)
Simple merge
index db893b982111640d91727064c6aa95ba8144ca26,0000000000000000000000000000000000000000..ac92fb4bb47800af26b4ec52576abf2a81389296
mode 100644,000000..100644
--- /dev/null
@@@ -1,26 -1,0 +1,26 @@@
-   string(19) "2014-03-02 16:24:08"
 +--TEST--
 +Tests for DateTimeImmutable::createFromMutable.
 +--INI--
 +date.timezone=Europe/London
 +--FILE--
 +<?php
 +$current = "2014-03-02 16:24:08";
 +
 +$i = DateTimeImmutable::createFromMutable( date_create( $current ) );
 +var_dump( $i );
 +
 +$i = DateTimeImmutable::createFromMutable( date_create_immutable( $current ) );
 +var_dump( $i );
 +?>
 +--EXPECTF--
 +object(DateTimeImmutable)#%d (3) {
 +  ["date"]=>
++  string(26) "2014-03-02 16:24:08.000000"
 +  ["timezone_type"]=>
 +  int(3)
 +  ["timezone"]=>
 +  string(13) "Europe/London"
 +}
 +
 +Warning: DateTimeImmutable::createFromMutable() expects parameter 1 to be DateTime, object given in %stests%eDateTimeImmutable_createFromMutable.php on line %d
 +NULL