Skip to content

Make DateInterval::createFromDateString() throw an exception on invalid date strings #651

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

Closed
wants to merge 2 commits into from

Conversation

datibbaw
Copy link
Contributor

This addresses feature request 50020.

It throws an exception if DateInterval::createFromDateString() is given an invalid time string.

@smalyshev
Copy link
Contributor

This only has a test, which fails.

@datibbaw
Copy link
Contributor Author

@smalyshev Well, they say the best start is a failing test case ;-) I'll look into this!

@ghost
Copy link

ghost commented Mar 7, 2015

Can one of the admins verify this patch?

@krakjoe
Copy link
Member

krakjoe commented Jan 3, 2017

This PR is so old that the master branch has moved, this is a patch against 5 series. Since a patch against a supported branch is going to look very different, and since this hasn't generated enough interest to have it merged, I'm going to close this PR.

Please take this action as encouragement to open a PR against a supported branch.

@krakjoe krakjoe closed this Jan 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants