summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug55397.phpt
blob: efc09b504796304dbba67c5670aa4819b715f8fc (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Bug #55397 (comparsion of incomplete DateTime causes SIGSEGV)
--INI--
--FILE--
<?php
date_default_timezone_set('Europe/Prague');
var_dump(unserialize('O:8:"DateTime":0:{}') == new DateTime);
?>
--EXPECTF--
Warning: %s: Trying to compare an incomplete DateTime object in %s on line %d
bool(false)