xref: /PHP-5.6/ext/date/tests/bug46108.phpt (revision b33f8860)
1--TEST--
2Bug #46108 (DateTime - Memory leak when unserializing)
3--FILE--
4<?php
5
6date_default_timezone_set('America/Sao_Paulo');
7
8var_dump(unserialize(serialize(new Datetime)));
9
10?>
11--EXPECTF--
12object(DateTime)#%d (3) {
13  [%u|b%"date"]=>
14  %string|unicode%(%d) "%s"
15  [%u|b%"timezone_type"]=>
16  int(%d)
17  [%u|b%"timezone"]=>
18  %string|unicode%(%d) "America/Sao_Paulo"
19}
20