unread
Okay, here is the proper fixed patch, tested via various methods:
$d1 = new DateTime;
while(1) {
// no memory leak
$d1->modify("Tue, 10 Apr 2012 11:27:56 +0300");
// memory leak - now fixed with new patch
$d1->modify("Tue, 10 Apr 2012 11:27:56 CST");
// no memory leak
$d1->modify("Tue, 10 Apr 2012 11:27:56 Pacific/Chatham");
}
Attaching this second patch to the original bug report, as well as
including here.
Thanks!