Test: /ext/date/tests/date_format_variation2.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_format() : usage variation - unexpected values to second 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_format() expects parameter 2 to be string, array given in %s on line %d
027- bool(false)
028-
029- -- int indexed array --
030-
031- Warning: date_format() expects parameter 2 to be string, array given in %s on line %d
032- bool(false)
033-
034- -- associative array --
035-
036- Warning: date_format() expects parameter 2 to be string, array given in %s on line %d
037- bool(false)
038-
039- -- nested arrays --
040-
041- Warning: date_format() expects parameter 2 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) "4131Thu, 14 Jul 2005 22:30:41 +010030710"
070-
071- -- string SQ --
072- string(40) "4131Thu, 14 Jul 2005 22:30:41 +010030710"
073-
074- -- mixed case string --
075- string(40) "41BSTThu, 14 Jul 2005 22:30:41 +01001722"
076-
077- -- heredoc --
078- string(82) "10Europe/LondonThursdayThursday2005 42005Thu, 14 Jul 2005 22:30:41 +0100Thursday14"
079-
080- -- instance of classWithToString --
081- string(66) "CThursdaypm4141 PM 2005b14Europe/London2005-07-14T22:30:41+01:0031"
082-
083- -- instance of classWithoutToString --
084-
085- Warning: date_format() expects parameter 2 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_format() expects parameter 2 to be string, resource given in %s on line %d
097- bool(false)
098- ===DONE===