Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39254 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14926 invoked from network); 24 Jul 2008 05:36:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2008 05:36:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=tokul@users.sourceforge.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=tokul@users.sourceforge.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain users.sourceforge.net from 213.197.162.99 cause and error) X-PHP-List-Original-Sender: tokul@users.sourceforge.net X-Host-Fingerprint: 213.197.162.99 avilys.eik.lt Linux 2.6 Received: from [213.197.162.99] ([213.197.162.99:40718] helo=avilys.eik.lt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/A6-61638-4D418884 for ; Thu, 24 Jul 2008 01:36:20 -0400 Received: from avilys.eik.lt (avilys.local [127.0.0.1]) by avilys.eik.lt (Postfix) with ESMTP id 598751F5188 for ; Thu, 24 Jul 2008 08:34:02 +0300 (EEST) Received: from avilys.eik.lt (avilys.local [127.0.0.1]) by avilys.eik.lt (Postfix) with ESMTP id 3E3B91F5187 for ; Thu, 24 Jul 2008 08:34:02 +0300 (EEST) Received: from 195.22.180.233 (NaSMail authenticated user tomas@topolis.lt) by avilys.eik.lt with HTTP; Thu, 24 Jul 2008 08:34:02 +0300 (EEST) Message-ID: <52967.c316b4e9.1216877642.nsm@avilys.eik.lt> In-Reply-To: <7AFF263C3DBE2549899F71BB925794FF0492A863@sullivan.smartertravelmedia. com> References: <7AFF263C3DBE2549899F71BB925794FF0492A863@sullivan.smartertravelmedia.com> Date: Thu, 24 Jul 2008 08:34:02 +0300 (EEST) To: internals@lists.php.net User-Agent: NaSMail/1.5 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [PHP-DEV] question about backward-compatibility break/bug in php 5.2.6 From: tokul@users.sourceforge.net ("Tomas Kuliavas") > Hello all, > > Last week I submitted a bug report on the issue described below. The > response (also below) was that this is not a bug. I fail to see how it > could *not* be a bug given that strtotime is parsing an invalid date > into a seemingly-arbitrary and definitely-meaningless number, rather > than returning false as it is supposed to. Can someone explain to me > why this is "intended" behavior? We do rely on strtotime returning > false on invalid dates, and this behavior changed between 5.2.5 and > 5.2.6. Do we need to update our code to check for this arbitrary > negative integer? I would prefer not to do that. Date is not invalid. Some diety was born at -62169966000 Unixtime. -- Tomas