blob: 2ce12577101e50352b96d8326631a32d58069a54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--TEST--
Bug #55397 (comparison of incomplete DateTime causes SIGSEGV)
--INI--
--FILE--
<?php
date_default_timezone_set('Europe/Prague');
var_dump(unserialize('O:8:"DateTime":0:{}') == new DateTime);
?>
--EXPECTF--
Fatal error: Uncaught Error: Invalid serialization data for DateTime object in %sbug55397.php:%d
Stack trace:
#0 [internal function]: DateTime->__wakeup()
#1 %sbug55397.php(%d): unserialize('O:8:"DateTime":...')
#2 {main}
thrown in %sbug55397.php on line %d
|