--TEST-- Bug #51866 (Lenient parsing with parseFromFormat) --FILE-- --EXPECTF-- string(5) "Y-m-d" string(19) "2001-11-29 13:20:01" bool(false) array(4) { ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(1) ["errors"]=> array(1) { [10]=> string(13) "Trailing data" } } string(6) "Y-m-d+" string(19) "2001-11-29 13:20:01" object(DateTime)#%d (3) { ["date"]=> string(26) "2001-11-29 %d:%d:%d.%d" ["timezone_type"]=> int(3) ["timezone"]=> string(%d) "%s" } array(4) { ["warning_count"]=> int(1) ["warnings"]=> array(1) { [10]=> string(13) "Trailing data" } ["error_count"]=> int(0) ["errors"]=> array(0) { } } string(7) "Y-m-d +" string(19) "2001-11-29 13:20:01" object(DateTime)#%d (3) { ["date"]=> string(26) "2001-11-29 %d:%d:%d.%d" ["timezone_type"]=> int(3) ["timezone"]=> string(%d) "%s" } array(4) { ["warning_count"]=> int(1) ["warnings"]=> array(1) { [11]=> string(13) "Trailing data" } ["error_count"]=> int(0) ["errors"]=> array(0) { } } string(6) "Y-m-d+" string(10) "2001-11-29" object(DateTime)#%d (3) { ["date"]=> string(26) "2001-11-29 %d:%d:%d.%d" ["timezone_type"]=> int(3) ["timezone"]=> string(%d) "%s" } array(4) { ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(0) ["errors"]=> array(0) { } } string(7) "Y-m-d +" string(10) "2001-11-29" bool(false) array(4) { ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(1) ["errors"]=> array(1) { [10]=> string(%d) "Not enough data available to satisfy format" } } string(7) "Y-m-d +" string(11) "2001-11-29 " object(DateTime)#%d (3) { ["date"]=> string(26) "2001-11-29 %d:%d:%d.%d" ["timezone_type"]=> int(3) ["timezone"]=> string(%d) "%s" } array(4) { ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(0) ["errors"]=> array(0) { } }