]> granicus.if.org Git - php/commit
Remove "defensive copy" of DatePeriod properties
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 12 Feb 2019 08:54:52 +0000 (09:54 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 12 Feb 2019 08:54:52 +0000 (09:54 +0100)
commita109fddba4e3fbb6e3a2e008c0fa20a57f26103d
tree5f335a2521c081dbce7d1c44aff759564459dcf0
parentc4294440ffc4a59a1298292b76072e6759034a68
Remove "defensive copy" of DatePeriod properties

get_properties() constructs these as fresh objects with no relation
to the internals, there is no need to clone them again. Additionally
the current implementation leaks memory, because the original objects
are never freed (see PR #3121).
ext/date/php_date.c