xref: /PHP-7.0/ext/date/tests/bug53437_var1.phpt (revision f16143f5)
1--TEST--
2Bug #53437 (Crash when using unserialized DatePeriod instance), variation 2
3--FILE--
4<?php
5$s = 'O:10:"DatePeriod":0:{}';
6
7$dp = unserialize($s);
8
9var_dump($dp);
10?>
11==DONE==
12--EXPECTF--
13Fatal error: Invalid serialization data for DatePeriod object in %sbug53437_var1.php on line %d
14