cvs: php-src /ext/date/tests bug46108.phpt
| From: | Felipe Pena | Date: | Wed, 08 Apr 2009 00:29:55 +0000 |
| Subject: | cvs: php-src /ext/date/tests bug46108.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-56950@lists.php.net to get a copy of this message | ||
felipe Wed Apr 8 00:29:55 2009 UTC
Modified files:
/php-src/ext/date/tests bug46108.phpt
Log:
- Added test
http://cvs.php.net/viewvc.cgi/php-src/ext/date/tests/bug46108.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/date/tests/bug46108.phpt
diff -u /dev/null php-src/ext/date/tests/bug46108.phpt:1.2
--- /dev/null Wed Apr 8 00:29:55 2009
+++ php-src/ext/date/tests/bug46108.phpt Wed Apr 8 00:29:55 2009
@@ -0,0 +1,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"
+}