1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00
Files
archived-php-src/ext/date/tests/bug55397.phpt
Veres Lajos e9a95d78ef typo fixes
2013-07-15 00:23:03 -07:00

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