xref: /PHP-5.4/ext/date/tests/bug68942_2.phpt (revision 7b189818)
1--TEST--
2Bug #68942 (Use after free vulnerability in unserialize() with DateTime).
3--FILE--
4<?php
5$data = unserialize('a:2:{i:0;O:8:"DateTime":3:{s:4:"date";s:26:"2000-01-01 00:00:00.000000";s:13:"timezone_type";a:2:{i:0;i:1;i:1;i:2;}s:8:"timezone";s:1:"A";}i:1;R:5;}');
6var_dump($data);
7?>
8--EXPECTF--
9Fatal error: Invalid serialization data for DateTime object in %s/bug68942_2.php on line %d
10