Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66593 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62991 invoked from network); 12 Mar 2013 16:04:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Mar 2013 16:04:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:42036] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/2B-19967-7225F315 for ; Tue, 12 Mar 2013 11:04:58 -0500 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 12D71DE13E; Tue, 12 Mar 2013 16:04:52 +0000 (GMT) Date: Tue, 12 Mar 2013 16:04:51 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Christian Stoller cc: "internals@lists.php.net" , =?UTF-8?Q?Patrick_Matth=C3=A4i?= In-Reply-To: <4ED7146272E04A47B986ED49E771E347BB431FB997@Ikarus.ameusgmbh.intern> Message-ID: References: <4ED7146272E04A47B986ED49E771E347BB431FB997@Ikarus.ameusgmbh.intern> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] DateTime->modify('tomorrow') Bug in PHP 5.3 on Linux From: derick@php.net (Derick Rethans) On Tue, 12 Mar 2013, Christian Stoller wrote: > I have a strange bug with DateTime->modify('tomorrow') in PHP 5.3 on Linux. > Code to reproduce: > > $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 > > Can somebody verify this behavior? Are there any information about > that or is there already something in the bugtracker? I have googled > but couldn't find anything about that. The 5.3.14 result is correct. It was apparently a bug in earlier 5.3 versions. cheers, Derick