Test: /ext/date/tests/date_date_set_variation3.phpt - Version 5.3.20-dev    

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
030+ string(13) "
030- string(13) "Europe/London"
031- }
032-
033- -- int -12345 --
034- object(DateTime)#%d (3) {
035- ["date"]=>
036- string(19) "0934-03-02 08:34:10"
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(19) "1963-10-02 08:34:10"
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(19) "1962-02-02 08:34:10"
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(19) "1962-12-02 08:34:10"
067- ["timezone_type"]=>
068- int(3)
069- ["timezone"]=>
070- string(13) "Europe/London"
071- }
072-
073- -- empty array --
074-
075- Warning: date_date_set() expects parameter 3 to be long, array given in %s on line %d
076- bool(false)
077-
078- -- int indexed array --
079-
080- Warning: date_date_set() expects parameter 3 to be long, array given in %s on line %d
081- bool(false)
082-
083- -- associative array --
084-
085- Warning: date_date_set() expects parameter 3 to be long, array given in %s on line %d
086- bool(false)
087-
088- -- nested arrays --
089-
090- Warning: date_date_set() expects parameter 3 to be long, array given in %s on line %d
091- bool(false)
092-
093- -- uppercase NULL --
094- object(DateTime)#%d (3) {
095- ["date"]=>
096- string(19) "1962-12-02 08:34:10"
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(19) "1962-12-02 08:34:10"
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(19) "1963-01-02 08:34:10"
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(19) "1962-12-02 08:34:10"
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(19) "1963-01-02 08:34:10"
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(19) "1962-12-02 08:34:10"
147- ["timezone_type"]=>
148- int(3)
149- ["timezone"]=>
150- string(13) "Europe/London"
151- }
152-
153- -- empty string DQ --
154-
155- Warning: date_date_set() expects parameter 3 to be long, string given in %s on line %d
156- bool(false)
157-
158- -- empty string SQ --
159-
160- Warning: date_date_set() expects parameter 3 to be long, string given in %s on line %d
161- bool(false)
162-
163- -- string DQ --
164-
165- Warning: date_date_set() expects parameter 3 to be long, string given in %s on line %d
166- bool(false)
167-
168- -- string SQ --
169-
170- Warning: date_date_set() expects parameter 3 to be long, string given in %s on line %d
171- bool(false)
172-
173- -- mixed case string --
174-
175- Warning: date_date_set() expects parameter 3 to be long, string given in %s on line %d
176- bool(false)
177-
178- -- heredoc --
179-
180- Warning: date_date_set() expects parameter 3 to be long, string given in %s on line %d
181- bool(false)
182-
183- -- instance of classWithToString --
184-
185- Warning: date_date_set() expects parameter 3 to be long, object given in %s on line %d
186- bool(false)
187-
188- -- instance of classWithoutToString --
189-
190- Warning: date_date_set() expects parameter 3 to be long, object given in %s on line %d
191- bool(false)
192-
193- -- undefined var --
194- object(DateTime)#%d (3) {
195- ["date"]=>
196- string(19) "1962-12-02 08:34:10"
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(19) "1962-12-02 08:34:10"
207- ["timezone_type"]=>
208- int(3)
209- ["timezone"]=>
210- string(13) "Europe/London"
211- }
212-
213- -- resource --
214-
215- Warning: date_date_set() expects parameter 3 to be long, resource given in %s on line %d
216- bool(false)
217- ===DONE===