summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug46108.phpt
blob: 12fdfa7e5d38cb103cd3581dab40c13b71e1f389 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Bug #46108 (DateTime - Memory leak when unserializing)
--FILE--
<?php

date_default_timezone_set('America/Sao_Paulo');

var_dump(unserialize(serialize(new Datetime)));

?>
--EXPECTF--
object(DateTime)#%d (3) {
  [%u|b%"date"]=>
  %string|unicode%(%d) "%s"
  [%u|b%"timezone_type"]=>
  int(%d)
  [%u|b%"timezone"]=>
  %string|unicode%(%d) "America/Sao_Paulo"
}