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)
--- /dev/null
- 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