From:             laruence
Operating system: 
PHP version:      5.5.0alpha2
Package:          Date/time related
Bug Type:         Bug
Bug description:Tow Data tests failes

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

-- 
Edit bug report at https://bugs.php.net/bug.php?id=63988&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=63988&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=63988&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=63988&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=63988&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=63988&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=63988&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=63988&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=63988&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=63988&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=63988&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=63988&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=63988&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=63988&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63988&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=63988&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=63988&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=63988&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63988&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=63988&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=63988&r=mysqlcfg

Reply via email to