php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63988 Two Date tests fail
Submitted: 2013-01-15 03:23 UTC Modified: 2013-01-15 04:03 UTC
From: laruence@php.net Assigned: derick (profile)
Status: Closed Package: Date/time related
PHP Version: 5.5.0alpha2 OS:
Private report: No CVE-ID: None
 [2013-01-15 03:23 UTC] laruence@php.net
Description:
------------
Test DateTime::modify() function : usage variation - Passing unexpected values to 
first argument $modify. [ext/date/tests/DateTime_modify_variation1.phpt]
Test date_modify() function : usage variation - Passing unexpected values to 
second argument $format. [ext/date/tests/date_modify_variation2.phpt]

Test script:
---------------
$ cat ext/date/tests/DateTime_modify_variation1.diff 
006+ object(DateTime)#3 (3) {
007+   ["date"]=>
008+   string(19) "2009-01-31 14:28:41"
009+   ["timezone_type"]=>
010+   int(3)
011+   ["timezone"]=>
012+   string(13) "Europe/London"
013+ }
006- bool(false)
011- bool(false)
016- bool(false)
018+ object(DateTime)#3 (3) {
019+   ["date"]=>
020+   string(19) "2009-01-31 14:28:41"
021+   ["timezone_type"]=>
022+   int(3)
023+   ["timezone"]=>
024+   string(13) "Europe/London"
025+ }
021- bool(false)
030+ object(DateTime)#3 (3) {
031+   ["date"]=>
032+   string(19) "2009-01-31 14:28:41"
033+   ["timezone_type"]=>
034+   int(3)
035+   ["timezone"]=>
036+   string(13) "Europe/London"
037+ }
036- bool(false)
042+ object(DateTime)#3 (3) {
043+   ["date"]=>
044+   string(19) "2009-01-31 14:28:41"
045+   ["timezone_type"]=>
046+   int(3)
047+   ["timezone"]=>
048+   string(13) "Europe/London"
049+ }
064+ object(DateTime)#3 (3) {
065+   ["date"]=>
066+   string(19) "2009-01-31 10:05:00"
067+   ["timezone_type"]=>
068+   int(3)
069+   ["timezone"]=>
070+   string(13) "Europe/London"
071+ }
071- bool(false)
076- bool(false)
081- bool(false)
086- bool(false)
091- bool(false)
096- bool(false)
101- bool(false)
106+ object(DateTime)#3 (3) {
107+   ["date"]=>
108+   string(19) "2009-01-31 00:05:00"
109+   ["timezone_type"]=>
110+   int(3)
111+   ["timezone"]=>
112+   string(13) "Europe/London"
113+ }
106- bool(false)
111- bool(false)
116- bool(false)
118+ object(DateTime)#3 (3) {
119+   ["date"]=>
120+   string(19) "2009-01-31 00:05:00"
121+   ["timezone_type"]=>
122+   int(3)
123+   ["timezone"]=>
124+   string(13) "Europe/London"
125+ }
121- bool(false)
126- bool(false)
130+ object(DateTime)#3 (3) {
131+   ["date"]=>
132+   string(19) "2009-01-31 00:05:00"
133+   ["timezone_type"]=>
134+   int(3)
135+   ["timezone"]=>
136+   string(13) "Europe/London"
137+ }
131- bool(false)
141- bool(false)
142+ object(DateTime)#3 (3) {
143+   ["date"]=>
144+   string(19) "2009-01-31 00:05:00"
145+   ["timezone_type"]=>
146+   int(3)
147+   ["timezone"]=>
148+   string(13) "Europe/London"
149+ }
146- bool(false)
154+ object(DateTime)#3 (3) {
155+   ["date"]=>
156+   string(19) "2009-01-31 00:05:00"
157+   ["timezone_type"]=>
158+   int(3)
159+   ["timezone"]=>
160+   string(13) "Europe/London"
161+ }
166+ object(DateTime)#3 (3) {
167+   ["date"]=>
168+   string(19) "2009-01-31 00:05:00"
169+   ["timezone_type"]=>
170+   int(3)
171+   ["timezone"]=>
172+   string(13) "Europe/London"
173+ }
178+ object(DateTime)#3 (3) {
179+   ["date"]=>
180+   string(19) "2009-01-31 00:05:00"
181+   ["timezone_type"]=>
182+   int(3)
183+   ["timezone"]=>
184+   string(13) "Europe/London"
185+ }
190+ object(DateTime)#3 (3) {
191+   ["date"]=>
192+   string(19) "2009-01-31 00:05:00"
193+   ["timezone_type"]=>
194+   int(3)
195+   ["timezone"]=>
196+   string(13) "Europe/London"
197+ }
202+ object(DateTime)#3 (3) {
203+   ["date"]=>
204+   string(19) "2009-01-31 00:05:00"
205+   ["timezone_type"]=>
206+   int(3)
207+   ["timezone"]=>
208+   string(13) "Europe/London"
209+ }
214+ object(DateTime)#3 (3) {
215+   ["date"]=>
216+   string(19) "2009-01-31 00:05:00"
217+   ["timezone_type"]=>
218+   int(3)
219+   ["timezone"]=>
220+   string(13) "Europe/London"
221+ }
226+ object(DateTime)#3 (3) {
227+   ["date"]=>
228+   string(19) "2009-01-31 00:05:00"
229+   ["timezone_type"]=>
230+   int(3)
231+   ["timezone"]=>
232+   string(13) "Europe/London"
233+ }
238+ object(DateTime)#3 (3) {
239+   ["date"]=>
240+   string(19) "2009-01-31 00:05:00"
241+   ["timezone_type"]=>
242+   int(3)
243+   ["timezone"]=>
244+   string(13) "Europe/London"
245+ }
250+ object(DateTime)#3 (3) {
251+   ["date"]=>
252+   string(19) "2009-01-31 00:05:00"
253+   ["timezone_type"]=>
254+   int(3)
255+   ["timezone"]=>
256+   string(13) "Europe/London"
257+ }
267+ object(DateTime)#3 (3) {
268+   ["date"]=>
269+   string(19) "2009-01-31 00:05:00"
270+   ["timezone_type"]=>
271+   int(3)
272+   ["timezone"]=>
273+   string(13) "Europe/London"
274+ }
279+ object(DateTime)#3 (3) {
280+   ["date"]=>
281+   string(19) "2009-01-31 00:05:00"
282+   ["timezone_type"]=>
283+   int(3)
284+   ["timezone"]=>
285+   string(13) "Europe/London"
286+ }





$ cat ext/date/tests/date_modify_variation2.diff 
006+ object(DateTime)#3 (3) {
007+   ["date"]=>
008+   string(19) "2009-01-31 14:28:41"
009+   ["timezone_type"]=>
010+   int(3)
011+   ["timezone"]=>
012+   string(13) "Europe/London"
013+ }
006- bool(false)
011- bool(false)
016- bool(false)
018+ object(DateTime)#3 (3) {
019+   ["date"]=>
020+   string(19) "2009-01-31 14:28:41"
021+   ["timezone_type"]=>
022+   int(3)
023+   ["timezone"]=>
024+   string(13) "Europe/London"
025+ }
021- bool(false)
030+ object(DateTime)#3 (3) {
031+   ["date"]=>
032+   string(19) "2009-01-31 14:28:41"
033+   ["timezone_type"]=>
034+   int(3)
035+   ["timezone"]=>
036+   string(13) "Europe/London"
037+ }
036- bool(false)
042+ object(DateTime)#3 (3) {
043+   ["date"]=>
044+   string(19) "2009-01-31 14:28:41"
045+   ["timezone_type"]=>
046+   int(3)
047+   ["timezone"]=>
048+   string(13) "Europe/London"
049+ }
064+ object(DateTime)#3 (3) {
065+   ["date"]=>
066+   string(19) "2009-01-31 10:05:00"
067+   ["timezone_type"]=>
068+   int(3)
069+   ["timezone"]=>
070+   string(13) "Europe/London"
071+ }
071- bool(false)
076- bool(false)
081- bool(false)
086- bool(false)
091- bool(false)
096- bool(false)
101- bool(false)
106+ object(DateTime)#3 (3) {
107+   ["date"]=>
108+   string(19) "2009-01-31 00:05:00"
109+   ["timezone_type"]=>
110+   int(3)
111+   ["timezone"]=>
112+   string(13) "Europe/London"
113+ }
106- bool(false)
111- bool(false)
116- bool(false)
118+ object(DateTime)#3 (3) {
119+   ["date"]=>
120+   string(19) "2009-01-31 00:05:00"
121+   ["timezone_type"]=>
122+   int(3)
123+   ["timezone"]=>
124+   string(13) "Europe/London"
125+ }
121- bool(false)
126- bool(false)
130+ object(DateTime)#3 (3) {
131+   ["date"]=>
132+   string(19) "2009-01-31 00:05:00"
133+   ["timezone_type"]=>
134+   int(3)
135+   ["timezone"]=>
136+   string(13) "Europe/London"
137+ }
131- bool(false)
141- bool(false)
142+ object(DateTime)#3 (3) {
143+   ["date"]=>
144+   string(19) "2009-01-31 00:05:00"
145+   ["timezone_type"]=>
146+   int(3)
147+   ["timezone"]=>
148+   string(13) "Europe/London"
149+ }
146- bool(false)
154+ object(DateTime)#3 (3) {
155+   ["date"]=>
156+   string(19) "2009-01-31 00:05:00"
157+   ["timezone_type"]=>
158+   int(3)
159+   ["timezone"]=>
160+   string(13) "Europe/London"
161+ }
166+ object(DateTime)#3 (3) {
167+   ["date"]=>
168+   string(19) "2009-01-31 00:05:00"
169+   ["timezone_type"]=>
170+   int(3)
171+   ["timezone"]=>
172+   string(13) "Europe/London"
173+ }
178+ object(DateTime)#3 (3) {
179+   ["date"]=>
180+   string(19) "2009-01-31 00:05:00"
181+   ["timezone_type"]=>
182+   int(3)
183+   ["timezone"]=>
184+   string(13) "Europe/London"
185+ }
190+ object(DateTime)#3 (3) {
191+   ["date"]=>
192+   string(19) "2009-01-31 00:05:00"
193+   ["timezone_type"]=>
194+   int(3)
195+   ["timezone"]=>
196+   string(13) "Europe/London"
197+ }
202+ object(DateTime)#3 (3) {
203+   ["date"]=>
204+   string(19) "2009-01-31 00:05:00"
205+   ["timezone_type"]=>
206+   int(3)
207+   ["timezone"]=>
208+   string(13) "Europe/London"
209+ }
214+ object(DateTime)#3 (3) {
215+   ["date"]=>
216+   string(19) "2009-01-31 00:05:00"
217+   ["timezone_type"]=>
218+   int(3)
219+   ["timezone"]=>
220+   string(13) "Europe/London"
221+ }
226+ object(DateTime)#3 (3) {
227+   ["date"]=>
228+   string(19) "2009-01-31 00:05:00"
229+   ["timezone_type"]=>
230+   int(3)
231+   ["timezone"]=>
232+   string(13) "Europe/London"
233+ }
238+ object(DateTime)#3 (3) {
239+   ["date"]=>
240+   string(19) "2009-01-31 00:05:00"
241+   ["timezone_type"]=>
242+   int(3)
243+   ["timezone"]=>
244+   string(13) "Europe/London"
245+ }
250+ object(DateTime)#3 (3) {
251+   ["date"]=>
252+   string(19) "2009-01-31 00:05:00"
253+   ["timezone_type"]=>
254+   int(3)
255+   ["timezone"]=>
256+   string(13) "Europe/London"
257+ }
267+ object(DateTime)#3 (3) {
268+   ["date"]=>
269+   string(19) "2009-01-31 00:05:00"
270+   ["timezone_type"]=>
271+   int(3)
272+   ["timezone"]=>
273+   string(13) "Europe/London"
274+ }
279+ object(DateTime)#3 (3) {
280+   ["date"]=>
281+   string(19) "2009-01-31 00:05:00"
282+   ["timezone_type"]=>
283+   int(3)
284+   ["timezone"]=>
285+   string(13) "Europe/London"
286+ }

Expected result:
----------------
none

Actual result:
--------------
none

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-01-15 03:23 UTC] laruence@php.net
-Assigned To: +Assigned To: derick
 [2013-01-15 04:03 UTC] sixd@php.net
-Summary: Tow Data tests failes +Summary: Two Date tests fail
 [2013-01-18 07:50 UTC] laruence@php.net
-Status: Assigned +Status: Closed
 [2013-01-18 07:50 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4eae08729673492a1f545d366c5df5cd76af9bcf
Log: Fixed bug #63988 (Two Date tests fail) only for PHP-5.5
 [2013-01-18 07:51 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4eae08729673492a1f545d366c5df5cd76af9bcf
Log: Fixed bug #63988 (Two Date tests fail) only for PHP-5.5
 [2013-11-17 09:31 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4eae08729673492a1f545d366c5df5cd76af9bcf
Log: Fixed bug #63988 (Two Date tests fail) only for PHP-5.5
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 13:01:30 2024 UTC