Test: /ext/date/tests/date_parse_variation1.phpt - Version 5.6.14-dev    

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
004- array(1) {
005- [0]=>
006- string(20) "Unexpected character"
007- }
008-
009- -- int 1 --
010- array(1) {
011- [0]=>
012- string(20) "Unexpected character"
013- }
014-
015- -- int 12345 --
016- array(1) {
017- [4]=>
018- string(20) "Unexpected character"
019- }
020-
021- -- int -12345 --
022- array(1) {
023- [5]=>
024- string(20) "Unexpected character"
025- }
026-
027- -- float 10.5 --
028- array(0) {
029- }
030-
031- -- float -10.5 --
032- array(1) {
033- [4]=>
034- string(20) "Unexpected character"
035- }
036-
037- -- float .5 --
038- array(0) {
039- }
040-
041- -- empty array --
042-
043- Warning: date_parse() expects parameter 1 to be string, array given in %s on line %d
044- bool(false)
045-
046- -- int indexed array --
047-
048- Warning: date_parse() expects parameter 1 to be string, array given in %s on line %d
049- bool(false)
050-
051- -- associative array --
052-
053- Warning: date_parse() expects parameter 1 to be string, array given in %s on line %d
054- bool(false)
055-
056- -- nested arrays --
057-
058- Warning: date_parse() expects parameter 1 to be string, array given in %s on line %d
059- bool(false)
060-
061- -- uppercase NULL --
062- array(1) {
063- [0]=>
064- string(12) "Empty string"
065- }
066-
067- -- lowercase null --
068- array(1) {
069- [0]=>
070- string(12) "Empty string"
071- }
072-
073- -- lowercase true --
074- array(1) {
075- [0]=>
076- string(20) "Unexpected character"
077- }
078-
079- -- lowercase false --
080- array(1) {
081- [0]=>
082- string(12) "Empty string"
083- }
084-
085- -- uppercase TRUE --
086- array(1) {
087- [0]=>
088- string(20) "Unexpected character"
089- }
090-
091- -- uppercase FALSE --
092- array(1) {
093- [0]=>
094- string(12) "Empty string"
095- }
096-
097- -- empty string DQ --
098- array(1) {
099- [0]=>
100- string(12) "Empty string"
101- }
102-
103- -- empty string SQ --
104- array(1) {
105- [0]=>
106- string(12) "Empty string"
107- }
108-
109- -- string DQ --
110- array(1) {
111- [0]=>
112- string(47) "The timezone could not be found in the database"
113- }
114-
115- -- string SQ --
116- array(1) {
117- [0]=>
118- string(47) "The timezone could not be found in the database"
119- }
120-
121- -- mixed case string --
122- array(1) {
123- [0]=>
124- string(47) "The timezone could not be found in the database"
125- }
126-
127- -- heredoc --
128- array(1) {
129- [0]=>
130- string(47) "The timezone could not be found in the database"
131- }
132-
133- -- instance of classWithToString --
134- array(2) {
135- [0]=>
136- string(47) "The timezone could not be found in the database"
137- [8]=>
138- string(29) "Double timezone specification"
139- }
140-
141- -- instance of classWithoutToString --
142-
143- Warning: date_parse() expects parameter 1 to be string, object given in %s on line %d
144- bool(false)
145-
146- -- undefined var --
147- array(1) {
148- [0]=>
149- string(12) "Empty string"
150- }
151-
152- -- unset var --
153- array(1) {
154- [0]=>
155- string(12) "Empty string"
156- }
157-
158- -- resource --
159-
160- Warning: date_parse() expects parameter 1 to be string, resource given in %s on line %d
161- bool(false)
162- ===DONE===