8000 Bugfix for #66091: memory leak in DateTime::createFromFormat() and friends by datibbaw · Pull Request #768 · php/php-src · GitHub
[go: up one dir, main page]

Skip to content

Bugfix for #66091: memory leak in DateTime::createFromFormat() and friends#768

Closed
datibbaw wants to merge 1 commit intophp:masterfrom
datibbaw:bug66091
Closed

Bugfix for #66091: memory leak in DateTime::createFromFormat() and friends#768
datibbaw wants to merge 1 commit intophp:masterfrom
datibbaw:bug66091

Conversation

@datibbaw
Copy link
Contributor

This fixes #66091.

It addresses the somewhat odd memory allocation and teardown that's done in the constructors when parsing fails; it affects date_create(), date_create_immutable(), date_create_from_format() and date_create_immutable_from_format().

One test case needed to be updated due to differing object id's.

This PR supersedes #766

@derickr
Copy link
Member
derickr commented Aug 13, 2014

LGTM, but this PR is into master... it should go into all branches PHP 5.4 and up.

@datibbaw
Copy link
Contributor Author

@derickr If I target 5.4 Travis will not run =S I can back port it, no problem ...

@datibbaw
Copy link
Contributor Author
datibbaw commented Oct 8, 2014

This has already been applied, but in such a way that Github couldn't match it against this PR.

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.

2 participants

0