xref: /PHP-5.3/ext/date/tests/bug55397.phpt (revision 9456dac5)
1--TEST--
2Bug #55397 (comparsion 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: Invalid serialization data for DateTime object in %sbug55397.php on line %d
11