Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50096 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28894 invoked from network); 3 Nov 2010 21:46:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Nov 2010 21:46:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 207.97.245.173 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 207.97.245.173 smtp173.iad.emailsrvr.com Linux 2.6 Received: from [207.97.245.173] ([207.97.245.173:53833] helo=smtp173.iad.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/00-28517-F18D1DC4 for ; Wed, 03 Nov 2010 16:46:07 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp47.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id C96A53A877C; Wed, 3 Nov 2010 17:46:04 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp47.relay.iad1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 7988B3A879E; Wed, 3 Nov 2010 17:46:03 -0400 (EDT) Message-ID: <4CD1D81A.1090009@sugarcrm.com> Date: Wed, 03 Nov 2010 14:46:02 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: James Butler CC: PHP Internals References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PATCH] lenient datetime From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > What would happen if the string contained a matching pattern twice or > me, which would be 'returned', also does this allow the rest of the > string to be pretty much junk. Yes, the rest of the string (i.e. everything after the format was matched, while ignoring +) can be anything. I.e., as soon as the requirements of the format (like "Y-m-d") is satisfied, it doesn't matter what else the string has. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227