1--TEST--
2Fractions with DateTime objects (Serialization)
3--INI--
4date.timezone=UTC
5--FILE--
6<?php
7/* Normal creation */
8$dt = date_create( "2016-10-03 12:47:18.819313" );
9
10$s = serialize( $dt );
11echo $s, "\n";
12
13$u = unserialize( $s );
14var_dump( $u );
15?>
16--EXPECTF--
17O:8:"DateTime":3:{s:4:"date";s:26:"2016-10-03 12:47:18.819313";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}
18object(DateTime)#2 (%d) {
19  ["date"]=>
20  string(26) "2016-10-03 12:47:18.819313"
21  ["timezone_type"]=>
22  int(3)
23  ["timezone"]=>
24  string(3) "UTC"
25}
26