Test: /ext/date/tests/bug54851.phpt - Version 5.4.0RC3-dev        

Bug #54851 DateTime::createFromFormat, $format=='D' or $format=='l' Always Returns Today.
Submitted: 2011-05-19 00:51:31 Modified: 2011-11-26 16:44:08
From: phpbugs Assigned: derick
Status: Closed Package: Date/time related
PHP Version: trunk-SVN-2011-05-18 (SVN) OS: Mac OS X

There are 2 different diffs reported by users for this test.

Count Diff
46 (98%)
002+
003+ Fatal error: Call to a member function format() on a non-object in %s/bug54851.php on line 5
002- Tue, %d %s %d 00:00:00 +0000
003- bool(true)
004- Fri, 20 May 2011 00:00:00 +0000
005- Fri, 20 May 2011 00:00:00 +0000
006- bool(true)
007- Tue, %d %s %d 00:00:00 +0000
008- Tue, %d %s %d 00:00:00 +0000
009- bool(true)
010- Fri, 25 Nov 2011 00:00:00 +0000
011- Fri, 25 Nov 2011 00:00:00 +0000
012- bool(true)
013- Sat, 19 Nov 2011 00:00:00 +0000
014- Sat, 19 Nov 2011 00:00:00 +0000
015- bool(true)
1 (2%)
002+ Mon, 17 Feb 2020 00:00:00 +0000
003+ bool(false)
004- Fri, 20 May 2011 00:00:00 +0000
005- Fri, 20 May 2011 00:00:00 +0000
005+ Tue, 17 May 2011 00:00:00 +0000
007+ Tue, 18 Feb 2020 00:00:00 +0000
008+ Mon, 17 Feb 2020 00:00:00 +0000
009+ bool(false)
010+ Sat, 19 Nov 2011 00:00:00 +0000
011+ Fri, 25 Nov 2011 00:00:00 +0000
012+ bool(false)
013+ Sat, 19 Nov 2011 00:00:00 +0000
014+ Sat, 19 Nov 2011 00:00:00 +0000
007- Tue, %d %s %d 00:00:00 +0000
008- Tue, %d %s %d 00:00:00 +0000
009- bool(true)
010- Fri, 25 Nov 2011 00:00:00 +0000
011- Fri, 25 Nov 2011 00:00:00 +0000
012- bool(true)
013- Sat, 19 Nov 2011 00:00:00 +0000
014- Sat, 19 Nov 2011 00:00:00 +0000
015- bool(true)