mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
20 lines
369 B
PHP
20 lines
369 B
PHP
--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"
|
|
}
|