Debian Bug report logs - #703109
DateTime->modify('tomorrow') Bug in PHP 5.3 in Debian Squeeze 4.3.5-4

version graph

Package: php5; Maintainer for php5 is (unknown);

Reported by: Christian Stoller <stoller@leonex.de>

Date: Fri, 15 Mar 2013 18:58:41 UTC

Severity: normal

Tags: squeeze

Found in version php5/5.3.3-7+squeeze15

Fixed in versions php5/5.4.0-1, php5/5.4.4-7, 5.4.4-14

Done: Ondřej Surý <ondrej@sury.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#703109; Package php5. (Fri, 15 Mar 2013 18:58:44 GMT) (full text, mbox, link).


Acknowledgement sent to Christian Stoller <stoller@leonex.de>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Fri, 15 Mar 2013 18:58:44 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Christian Stoller <stoller@leonex.de>
To: "submit@bugs.debian.org" <submit@bugs.debian.org>
Subject: DateTime->modify('tomorrow') Bug in PHP 5.3 in Debian Squeeze 4.3.5-4
Date: Fri, 15 Mar 2013 16:11:00 +0100
Package: php5
Version: 5.3.3-7+squeeze15
Tags: squeeze


I have a strange bug with DateTime->modify('tomorrow') in PHP 5.3.
Code to reproduce:

<?php
$d = new DateTime('2013-02-05 06:33:33');
echo $d->format('Y-m-d H:i:s')."\n";

$d->modify('tomorrow');
echo $d->format('Y-m-d H:i:s')."\n";
?>

Current output on Windows with PHP 5.3.14:
2013-02-05 06:33:33
2013-02-06 00:00:00

Current output on Linux (Debian) with PHP 5.3.3-7+squeeze15:
2013-02-05 06:33:33
2013-02-06 06:33:33

I have asked the PHP internals mailinglist (see http://www.mail-archive.com/internals@lists.php.net/msg64587.html) and got this answer:

> 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.

Best regards
Christian Stoller

Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#703109; Package php5. (Sat, 16 Mar 2013 03:21:04 GMT) (full text, mbox, link).


Message #8 received at 703109@bugs.debian.org (full text, mbox, reply):

From: Bob Proulx <bob@proulx.com>
To: Christian Stoller <stoller@leonex.de>, 703109@bugs.debian.org
Subject: Re: Bug#703109: DateTime->modify('tomorrow') Bug in PHP 5.3 in Debian Squeeze 4.3.5-4
Date: Fri, 15 Mar 2013 21:18:45 -0600
fixed 703109 5.4.0-1
thanks

Christian Stoller wrote:
> I have a strange bug with DateTime->modify('tomorrow') in PHP 5.3.
> Code to reproduce:
> ...
> So it seems like the patch has not been integrated into Debian. It
> would be nice if this could be done.

Thank you for the bug report.  This has already been fixed in 5.4 in
Debian.  The newer 5.4 version will be in the next Debian release 7.0
code named Wheezy.  The release schedule for Wheezy is "soon" but
really it is very close to releasing.  All of us are anxious for it to
release.  At that time Stable will become Wheezy and this bug will no
longer exist in a Stable release.

The Stable release policy is that the only updates allowed for it are
those that fix security problems or severe problems.  A change such as
this would be out of scope for a Stable release according to the
stable release policy.  Therefore such a change can't go into
Squeeze.  It can only go into the next Debian Stable release.

Bob



Marked as fixed in versions php5/5.4.0-1. Request was from Bob Proulx <bob@proulx.com> to control@bugs.debian.org. (Sat, 16 Mar 2013 03:21:07 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#703109; Package php5. (Mon, 18 Mar 2013 05:48:04 GMT) (full text, mbox, link).


Acknowledgement sent to Thomas Goirand <thomas@goirand.fr>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Mon, 18 Mar 2013 05:48:04 GMT) (full text, mbox, link).


Message #15 received at 703109@bugs.debian.org (full text, mbox, reply):

From: Thomas Goirand <thomas@goirand.fr>
To: Christian Stoller <stoller@leonex.de>, 703109@bugs.debian.org
Subject: Re: [php-maint] Bug#703109: DateTime->modify('tomorrow') Bug in PHP 5.3 in Debian Squeeze 4.3.5-4
Date: Mon, 18 Mar 2013 13:45:49 +0800
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



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#703109; Package php5. (Mon, 18 Mar 2013 07:51:08 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Mon, 18 Mar 2013 07:51:08 GMT) (full text, mbox, link).


Message #20 received at 703109@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@debian.org>
To: Thomas Goirand <thomas@goirand.fr>, 703109@bugs.debian.org
Cc: Christian Stoller <stoller@leonex.de>
Subject: Re: [php-maint] Bug#703109: Bug#703109: DateTime->modify('tomorrow') Bug in PHP 5.3 in Debian Squeeze 4.3.5-4
Date: Mon, 18 Mar 2013 08:49:23 +0100
[Message part 1 (text/plain, inline)]
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@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@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint
>



-- 
Ondřej Surý <ondrej@sury.org>
[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#703109; Package php5. (Mon, 18 Mar 2013 08:15:12 GMT) (full text, mbox, link).


Acknowledgement sent to Christian Stoller <stoller@leonex.de>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Mon, 18 Mar 2013 08:15:12 GMT) (full text, mbox, link).


Message #25 received at 703109@bugs.debian.org (full text, mbox, reply):

From: Christian Stoller <stoller@leonex.de>
To: Ondřej Surý <ondrej@debian.org>, Thomas Goirand <thomas@goirand.fr>, "703109@bugs.debian.org" <703109@bugs.debian.org>, Bob Proulx <bob@proulx.com>
Cc: Patrick Matthäi <matthaei@leonex.de>
Subject: RE: [php-maint] Bug#703109: Bug#703109: DateTime->modify('tomorrow') Bug in PHP 5.3 in Debian Squeeze 4.3.5-4
Date: Mon, 18 Mar 2013 09:02:56 +0100
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@sury.org [mailto:ondrej@sury.org] On Behalf Of Ondrej Surý
Sent: Monday, March 18, 2013 8:49 AM
To: Thomas Goirand; 703109@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@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@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint




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

Reply sent to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility. (Fri, 04 Jul 2014 12:13:28 GMT) (full text, mbox, link).


Notification sent to Christian Stoller <stoller@leonex.de>:
Bug acknowledged by developer. (Fri, 04 Jul 2014 12:13:28 GMT) (full text, mbox, link).


Message #30 received at 703109-done@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: 648424-done@bugs.debian.org, 636146-done@bugs.debian.org, 637212-done@bugs.debian.org, 645340-done@bugs.debian.org, 647475-done@bugs.debian.org, 668157-done@bugs.debian.org, 668928-done@bugs.debian.org, 684110-done@bugs.debian.org, 691917-done@bugs.debian.org, 703109-done@bugs.debian.org, 705350-done@bugs.debian.org, 706091-done@bugs.debian.org, 715513-done@bugs.debian.org, 724817-done@bugs.debian.org, 668597-done@bugs.debian.org, 612364-done@bugs.debian.org, 507401-done@bugs.debian.org, 674685-done@bugs.debian.org, 499031-done@bugs.debian.org, 580232-done@bugs.debian.org, 674476-done@bugs.debian.org
Subject: Closing bugs filled against php5 in oldstable
Date: Fri, 04 Jul 2014 14:09:04 +0200
Version: 5.4.4-14

Hey all,

I am closing the bugs that were filled against php5 5.3 in Debian
oldstable
(well and earlier)...

Feel free to reopen the bug in you can reproduce it with php5 from
current
stable Debian release.

Cheers,
-- 
Ondřej Surý <ondrej@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server



Marked as fixed in versions php5/5.4.4-7. Request was from Ondřej Surý <ondrej@debian.org> to control@bugs.debian.org. (Wed, 09 Jul 2014 09:03:44 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 28 Apr 2015 07:25:47 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 01:29:48 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.