[php-maint] Bug#703109: Bug#703109: Bug#703109: DateTime->modify('tomorrow') Bug in PHP 5.3 in Debian Squeeze 4.3.5-4

Christian Stoller stoller at leonex.de
Mon Mar 18 08:02:56 UTC 2013


Thanks for your replies.
I have written a workaround for this bug. So it’s okay ;-)

Here’s the workaround for people running into the same problem:

<?php
$d = new DateTime('2013-02-05 06:33:33');
$d->modify('tomorrow');
$d = new DateTime($d->format('Y-m-d 00:00:00')); // <- this line added to set the time to 00:00:00
echo $d->format('Y-m-d H:i:s')."\n";
?>

Best regards
Christian



From: ondrej at sury.org [mailto:ondrej at sury.org] On Behalf Of Ondrej Surý
Sent: Monday, March 18, 2013 8:49 AM
To: Thomas Goirand; 703109 at bugs.debian.org
Cc: Christian Stoller
Subject: Re: [php-maint] Bug#703109: Bug#703109: DateTime->modify('tomorrow') Bug in PHP 5.3 in Debian Squeeze 4.3.5-4

Christian,

with wheezy almost out of the door (as Bob already explained), there's certainly no incentive to create non-security bug fix release of php5, which probably won't even get into next point release of squeeze. I know this is annoying, but we have only limited resources to maintain php5 in Debian. Thanks for understanding.

And Thomas, please, don't give people false hopes.

Ondrej


On Mon, Mar 18, 2013 at 6:45 AM, Thomas Goirand <thomas at goirand.fr> wrote:
On 03/15/2013 11:11 PM, Christian Stoller wrote:
>> The 5.3.14 result is correct. It was apparently a bug in earlier 5.3
>> versions.
>>
>> cheers,
>> Derick
> http://www.mail-archive.com/internals@lists.php.net/msg64588.html
>
> So it seems like the patch has not been integrated into Debian. It would be nice if this could be done.

Hi Christian,

If you want this to happen and Squeeze to be fixed, then I think you
should try and search upstream fix in their Git.

Thomas

_______________________________________________
pkg-php-maint mailing list
pkg-php-maint at lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint




-- 
Ondřej Surý <ondrej at sury.org>


More information about the pkg-php-maint mailing list