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