xref: /PHP-5.4/ext/date/tests/bug55397.phpt (revision e9a95d78)
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: Invalid serialization data for DateTime object in %sbug55397.php on line %d
11