Annotation of embedaddon/php/ext/date/tests/bug62852.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #62852 (Unserialize invalid DateTime causes crash), variation 1
3: --INI--
4: date.timezone=GMT
5: --FILE--
6: <?php
7: $s1 = 'O:8:"DateTime":3:{s:4:"date";s:20:"10007-06-07 03:51:49";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}';
8:
9: try {
10: unserialize( $s1 );
11: } catch ( Exception $e ) {}
12:
13: --EXPECTF--
14: Fatal error: Invalid serialization data for DateTime object in %sbug62852.php on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>