mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
15 lines
467 B
PHP
15 lines
467 B
PHP
--TEST--
|
|
Bug #55397 (comparison of incomplete DateTime causes SIGSEGV)
|
|
--FILE--
|
|
<?php
|
|
date_default_timezone_set('Europe/Prague');
|
|
var_dump(unserialize('O:8:"DateTime":0:{}') == new DateTime);
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Invalid serialization data for DateTime object in %sbug55397.php:%d
|
|
Stack trace:
|
|
#0 [internal function]: DateTime->__wakeup()
|
|
#1 %sbug55397.php(%d): unserialize('O:8:"DateTime":...')
|
|
#2 {main}
|
|
thrown in %sbug55397.php on line %d
|