-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
DateTimeToStringTransformerTest fails on PHP 5.3.3 #6429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The error is most likely from the call to DateTime::createFromFormat. I don't know why this happens though. |
Right, it looks like a bug in PHP (inconsistent behaviour). |
If I dump the contents of $lastErrors coming from array(4) {
'warning_count' =>
int(1)
'warnings' =>
array(1) {
[10] =>
string(27) "The parsed date was invalid"
}
'error_count' =>
int(1)
'errors' =>
array(1) {
[10] =>
string(12) "Data missing"
}
} It doesn't happen on other PHP versions. |
This error seems to appear only on creating date But when this line is removed next test with format |
This PR was merged into the 2.1 branch. Commits ------- 8beee64 [Form] Fix for `DateTimeToStringTransformer` Discussion ---------- [Form] Fix for `DateTimeToStringTransformer` Closes: #6429 --------------------------------------------------------------------------- by stloyd at 2012-12-21T08:19:11Z @fabpot @bschussek Could you review this ? Thanks =) --------------------------------------------------------------------------- by stloyd at 2012-12-23T13:51:36Z Ping @fabpot (without this every PR gets false fail results from Travis-CI)
Test fail with the following error:
I could only reproduce it on PHP 5.3.3.
The text was updated successfully, but these errors were encountered: