Test: /ext/date/tests/bug53437.phpt - Version 7.0.11-dev        

Bug #53437 Crash when using unserialized DatePeriod instance
Submitted: 2010-12-01 17:15:05 Modified: 2013-03-04 12:43:19
From: from.php.net Assigned: derick
Status: Closed Package: Date/time related
PHP Version: 5.3.3 OS: Windows XP SP3

There is 1 diff reported by users for this test.

Count Diff
2 (100%)
065+ Segmentation fault (core dumped)
066+
067+ Termsig=11
065- object(DatePeriod)#5 (6) {
066- ["start"]=>
067- object(DateTime)#10 (3) {
068- ["date"]=>
069- string(26) "2010-01-01 00:00:00.000000"
070- ["timezone_type"]=>
071- int(3)
072- ["timezone"]=>
073- string(3) "UTC"
074- }
075- ["current"]=>
076- object(DateTime)#7 (3) {
077- ["date"]=>
078- string(26) "2010-01-04 00:00:00.000000"
079- ["timezone_type"]=>
080- int(3)
081- ["timezone"]=>
082- string(3) "UTC"
083- }
084- ["end"]=>
085- NULL
086- ["interval"]=>
087- object(DateInterval)#8 (15) {
088- ["y"]=>
089- int(0)
090- ["m"]=>
091- int(0)
092- ["d"]=>
093- int(1)
094- ["h"]=>
095- int(0)
096- ["i"]=>
097- int(0)
098- ["s"]=>
099- int(0)
100- ["weekday"]=>
101- int(0)
102- ["weekday_behavior"]=>
103- int(0)
104- ["first_last_day_of"]=>
105- int(0)
106- ["invert"]=>
107- int(0)
108- ["days"]=>
109- int(0)
110- ["special_type"]=>
111- int(0)
112- ["special_amount"]=>
113- int(0)
114- ["have_weekday_relative"]=>
115- int(0)
116- ["have_special_relative"]=>
117- int(0)
118- }
119- ["recurrences"]=>
120- int(3)
121- ["include_start_date"]=>
122- bool(true)
123- }
124- Unserialized:
125- 2010-01-01 00:00:00
126- 2010-01-02 00:00:00
127- 2010-01-03 00:00:00
128- ==DONE==