Annotation of embedaddon/php/ext/date/tests/bug46108.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #46108 (DateTime - Memory leak when unserializing)
! 3: --FILE--
! 4: <?php
! 5:
! 6: date_default_timezone_set('America/Sao_Paulo');
! 7:
! 8: var_dump(unserialize(serialize(new Datetime)));
! 9:
! 10: ?>
! 11: --EXPECTF--
! 12: object(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: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>