Skip to content

Fix bug #71635 (DatePeriod::getEndDate() segfault) #1791

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 1 commit into from

Conversation

tpunt
Copy link
Contributor

@tpunt tpunt commented Mar 7, 2016

This fixes a segfault in DatePeriod::getEndDate() when no end date has been set. This is also reproducible in PHP 7 and master.

Bug report: https://bugs.php.net/bug.php?id=71635

@derickr can you take a look please?

@tpunt tpunt mentioned this pull request Mar 7, 2016
@tpunt tpunt changed the title Fix DatePeriod::getEndDate() segfault Fix bug #71635 (DatePeriod::getEndDate() segfault) Mar 7, 2016
@derickr
Copy link
Member

derickr commented Mar 8, 2016

Looks good to me!

@php-pulls
Copy link

Comment on behalf of ab at php.net:

Applied with f3f5a07 to 5.6+.

Thanks!

@php-pulls php-pulls closed this Mar 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants