Test: /ext/date/tests/date_variation1.phpt - Version 7.1.25    

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
001+ sh: 1: /home/ubuntu/php-7.1.25/sapi/cli/php: Permission denied
001- *** Testing date() : usage variation - unexpected values to first argument $format***
002-
003- -- int 0 --
004- string(1) "0"
005-
006- -- int 1 --
007- string(1) "1"
008-
009- -- int 12345 --
010- string(5) "12345"
011-
012- -- int -12345 --
013- string(6) "-12345"
014-
015- -- float 10.5 --
016- string(4) "10.5"
017-
018- -- float -10.5 --
019- string(5) "-10.5"
020-
021- -- float .5 --
022- string(3) "0.5"
023-
024- -- empty array --
025-
026- Warning: date() expects parameter 1 to be string, array given in %s on line %d
027- bool(false)
028-
029- -- int indexed array --
030-
031- Warning: date() expects parameter 1 to be string, array given in %s on line %d
032- bool(false)
033-
034- -- associative array --
035-
036- Warning: date() expects parameter 1 to be string, array given in %s on line %d
037- bool(false)
038-
039- -- nested arrays --
040-
041- Warning: date() expects parameter 1 to be string, array given in %s on line %d
042- bool(false)
043-
044- -- uppercase NULL --
045- string(0) ""
046-
047- -- lowercase null --
048- string(0) ""
049-
050- -- lowercase true --
051- string(1) "1"
052-
053- -- lowercase false --
054- string(0) ""
055-
056- -- uppercase TRUE --
057- string(1) "1"
058-
059- -- uppercase FALSE --
060- string(0) ""
061-
062- -- empty string DQ --
063- string(0) ""
064-
065- -- empty string SQ --
066- string(0) ""
067-
068- -- string DQ --
069- string(40) "3028Fri, 27 Feb 2009 10:44:30 +000044210"
070-
071- -- string SQ --
072- string(40) "3028Fri, 27 Feb 2009 10:44:30 +000044210"
073-
074- -- mixed case string --
075- string(40) "30GMTFri, 27 Feb 2009 10:44:30 +00000210"
076-
077- -- heredoc --
078- string(76) "10Europe/LondonFridayFriday2009 52009Fri, 27 Feb 2009 10:44:30 +0000Friday27"
079-
080- -- instance of classWithToString --
081- string(64) "CFridayam3030 AM 2009b27Europe/London2009-02-27T10:44:30+00:0028"
082-
083- -- instance of classWithoutToString --
084-
085- Warning: date() expects parameter 1 to be string, object given in %s on line %d
086- bool(false)
087-
088- -- undefined var --
089- string(0) ""
090-
091- -- unset var --
092- string(0) ""
093-
094- -- resource --
095-
096- Warning: date() expects parameter 1 to be string, resource given in %s on line %d
097- bool(false)
098- ===DONE===