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

Documentation Problem #51866 DateTime::createFromFormat does not match documentation
Submitted: 2010-05-20 04:01:27 Modified: 2010-05-22 21:23:54
From: smalyshev Assigned: salathe
Status: Closed Package: Date/time related
PHP Version: 5.3SVN-2010-05-20 (SVN) OS: *

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
004- array(4) {
005- ["warning_count"]=>
006- int(0)
007- ["warnings"]=>
008- array(0) {
009- }
010- ["error_count"]=>
011- int(1)
012- ["errors"]=>
013- array(1) {
014- [10]=>
015- string(13) "Trailing data"
016- }
017- }
018-
019-
020- string(6) "Y-m-d+"
021- string(19) "2001-11-29 13:20:01"
022- object(DateTime)#%d (3) {
023- ["date"]=>
024- string(26) "2001-11-29 %d:%d:%d.%d"
025- ["timezone_type"]=>
026- int(3)
027- ["timezone"]=>
028- string(%d) "%s"
029- }
030- array(4) {
031- ["warning_count"]=>
032- int(1)
033- ["warnings"]=>
034- array(1) {
035- [10]=>
036- string(13) "Trailing data"
037- }
038- ["error_count"]=>
039- int(0)
040- ["errors"]=>
041- array(0) {
042- }
043- }
044-
045-
046- string(7) "Y-m-d +"
047- string(19) "2001-11-29 13:20:01"
048- object(DateTime)#%d (3) {
049- ["date"]=>
050- string(26) "2001-11-29 %d:%d:%d.%d"
051- ["timezone_type"]=>
052- int(3)
053- ["timezone"]=>
054- string(%d) "%s"
055- }
056- array(4) {
057- ["warning_count"]=>
058- int(1)
059- ["warnings"]=>
060- array(1) {
061- [11]=>
062- string(13) "Trailing data"
063- }
064- ["error_count"]=>
065- int(0)
066- ["errors"]=>
067- array(0) {
068- }
069- }
070-
071-
072- string(6) "Y-m-d+"
073- string(10) "2001-11-29"
074- object(DateTime)#%d (3) {
075- ["date"]=>
076- string(26) "2001-11-29 %d:%d:%d.%d"
077- ["timezone_type"]=>
078- int(3)
079- ["timezone"]=>
080- string(%d) "%s"
081- }
082- array(4) {
083- ["warning_count"]=>
084- int(0)
085- ["warnings"]=>
086- array(0) {
087- }
088- ["error_count"]=>
089- int(0)
090- ["errors"]=>
091- array(0) {
092- }
093- }
094-
095-
096- string(7) "Y-m-d +"
097- string(10) "2001-11-29"
098- bool(false)
099- array(4) {
100- ["warning_count"]=>
101- int(0)
102- ["warnings"]=>
103- array(0) {
104- }
105- ["error_count"]=>
106- int(1)
107- ["errors"]=>
108- array(1) {
109- [10]=>
110- string(12) "Data missing"
111- }
112- }
113-
114-
115- string(7) "Y-m-d +"
116- string(11) "2001-11-29 "
117- object(DateTime)#%d (3) {
118- ["date"]=>
119- string(26) "2001-11-29 %d:%d:%d.%d"
120- ["timezone_type"]=>
121- int(3)
122- ["timezone"]=>
123- string(%d) "%s"
124- }
125- array(4) {
126- ["warning_count"]=>
127- int(0)
128- ["warnings"]=>
129- array(0) {
130- }
131- ["error_count"]=>
132- int(0)
133- ["errors"]=>
134- array(0) {
135- }
136- }