Test: /ext/date/tests/DateTime_setISODate_variation2.phpt - Version 7.3.20    

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
004- object(DateTime)#%d (3) {
005- ["date"]=>
006- string(26) "1962-12-25 08:34:10.000000"
007- ["timezone_type"]=>
008- int(3)
009- ["timezone"]=>
010- string(13) "Europe/London"
011- }
012-
013- -- int 1 --
014- object(DateTime)#%d (3) {
015- ["date"]=>
016- string(26) "1963-01-01 08:34:10.000000"
017- ["timezone_type"]=>
018- int(3)
019- ["timezone"]=>
020- string(13) "Europe/London"
021- }
022-
023- -- int 12345 --
024- object(DateTime)#%d (3) {
025- ["date"]=>
026- string(26) "2199-07-30 08:34:10.000000"
027- ["timezone_type"]=>
028- int(3)
029- ["timezone"]=>
030- string(13) "Europe/London"
031- }
032-
033- -- int -12345 --
034- object(DateTime)#%d (3) {
035- ["date"]=>
036- string(26) "1726-05-21 08:34:10.000000"
037- ["timezone_type"]=>
038- int(3)
039- ["timezone"]=>
040- string(13) "Europe/London"
041- }
042-
043- -- float 10.5 --
044- object(DateTime)#%d (3) {
045- ["date"]=>
046- string(26) "1963-03-05 08:34:10.000000"
047- ["timezone_type"]=>
048- int(3)
049- ["timezone"]=>
050- string(13) "Europe/London"
051- }
052-
053- -- float -10.5 --
054- object(DateTime)#%d (3) {
055- ["date"]=>
056- string(26) "1962-10-16 08:34:10.000000"
057- ["timezone_type"]=>
058- int(3)
059- ["timezone"]=>
060- string(13) "Europe/London"
061- }
062-
063- -- float .5 --
064- object(DateTime)#%d (3) {
065- ["date"]=>
066- string(26) "1962-12-25 08:34:10.000000"
067- ["timezone_type"]=>
068- int(3)
069- ["timezone"]=>
070- string(13) "Europe/London"
071- }
072-
073- -- empty array --
074-
075- Warning: DateTime::setISODate() expects parameter 2 to be int, array given in %s on line %d
076- bool(false)
077-
078- -- int indexed array --
079-
080- Warning: DateTime::setISODate() expects parameter 2 to be int, array given in %s on line %d
081- bool(false)
082-
083- -- associative array --
084-
085- Warning: DateTime::setISODate() expects parameter 2 to be int, array given in %s on line %d
086- bool(false)
087-
088- -- nested arrays --
089-
090- Warning: DateTime::setISODate() expects parameter 2 to be int, array given in %s on line %d
091- bool(false)
092-
093- -- uppercase NULL --
094- object(DateTime)#%d (3) {
095- ["date"]=>
096- string(26) "1962-12-25 08:34:10.000000"
097- ["timezone_type"]=>
098- int(3)
099- ["timezone"]=>
100- string(13) "Europe/London"
101- }
102-
103- -- lowercase null --
104- object(DateTime)#%d (3) {
105- ["date"]=>
106- string(26) "1962-12-25 08:34:10.000000"
107- ["timezone_type"]=>
108- int(3)
109- ["timezone"]=>
110- string(13) "Europe/London"
111- }
112-
113- -- lowercase true --
114- object(DateTime)#%d (3) {
115- ["date"]=>
116- string(26) "1963-01-01 08:34:10.000000"
117- ["timezone_type"]=>
118- int(3)
119- ["timezone"]=>
120- string(13) "Europe/London"
121- }
122-
123- -- lowercase false --
124- object(DateTime)#%d (3) {
125- ["date"]=>
126- string(26) "1962-12-25 08:34:10.000000"
127- ["timezone_type"]=>
128- int(3)
129- ["timezone"]=>
130- string(13) "Europe/London"
131- }
132-
133- -- uppercase TRUE --
134- object(DateTime)#%d (3) {
135- ["date"]=>
136- string(26) "1963-01-01 08:34:10.000000"
137- ["timezone_type"]=>
138- int(3)
139- ["timezone"]=>
140- string(13) "Europe/London"
141- }
142-
143- -- uppercase FALSE --
144- object(DateTime)#%d (3) {
145- ["date"]=>
146- string(26) "1962-12-25 08:34:10.000000"
147- ["timezone_type"]=>
148- int(3)
149- ["timezone"]=>
150- string(13) "Europe/London"
151- }
152-
153- -- empty string DQ --
154-
155- Warning: DateTime::setISODate() expects parameter 2 to be int, string given in %s on line %d
156- bool(false)
157-
158- -- empty string SQ --
159-
160- Warning: DateTime::setISODate() expects parameter 2 to be int, string given in %s on line %d
161- bool(false)
162-
163- -- string DQ --
164-
165- Warning: DateTime::setISODate() expects parameter 2 to be int, string given in %s on line %d
166- bool(false)
167-
168- -- string SQ --
169-
170- Warning: DateTime::setISODate() expects parameter 2 to be int, string given in %s on line %d
171- bool(false)
172-
173- -- mixed case string --
174-
175- Warning: DateTime::setISODate() expects parameter 2 to be int, string given in %s on line %d
176- bool(false)
177-
178- -- heredoc --
179-
180- Warning: DateTime::setISODate() expects parameter 2 to be int, string given in %s on line %d
181- bool(false)
182-
183- -- instance of classWithToString --
184-
185- Warning: DateTime::setISODate() expects parameter 2 to be int, object given in %s on line %d
186- bool(false)
187-
188- -- instance of classWithoutToString --
189-
190- Warning: DateTime::setISODate() expects parameter 2 to be int, object given in %s on line %d
191- bool(false)
192-
193- -- undefined var --
194- object(DateTime)#%d (3) {
195- ["date"]=>
196- string(26) "1962-12-25 08:34:10.000000"
197- ["timezone_type"]=>
198- int(3)
199- ["timezone"]=>
200- string(13) "Europe/London"
201- }
202-
203- -- unset var --
204- object(DateTime)#%d (3) {
205- ["date"]=>
206- string(26) "1962-12-25 08:34:10.000000"
207- ["timezone_type"]=>
208- int(3)
209- ["timezone"]=>
210- string(13) "Europe/London"
211- }
212-
213- -- resource --
214-
215- Warning: DateTime::setISODate() expects parameter 2 to be int, resource given in %s on line %d
216- bool(false)
217- ===DONE===