File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / date / tests / bug62852.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:31:39 2013 UTC (11 years, 1 month ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

--TEST--
Bug #62852 (Unserialize invalid DateTime causes crash), variation 1
--INI--
date.timezone=GMT
--FILE--
<?php
$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";}';

try {
    unserialize( $s1 );
} catch ( Exception $e ) {}

--EXPECTF--
Fatal error: Invalid serialization data for DateTime object in %sbug62852.php on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>