mirror of
https://github.com/php/php-src.git
synced 2024-10-04 00:06:16 +00:00
11 lines
304 B
PHP
11 lines
304 B
PHP
--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: Invalid serialization data for DateTime object in %sbug55397.php on line %d
|