Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27180 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25067 invoked by uid 1010); 22 Dec 2006 15:08:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 25052 invoked from network); 22 Dec 2006 15:08:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Dec 2006 15:08:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=iliaal@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=iliaal@gmail.com; sender-id=pass; domainkeys=good Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.82.238 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: iliaal@gmail.com X-Host-Fingerprint: 66.249.82.238 wx-out-0506.google.com Linux 2.4/2.6 Received: from [66.249.82.238] ([66.249.82.238:59938] helo=wx-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 65/60-17044-4A4FB854 for ; Fri, 22 Dec 2006 10:07:52 -0500 Received: by wx-out-0506.google.com with SMTP id i27so3020527wxd for ; Fri, 22 Dec 2006 07:07:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:x-priority:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=XDkm1VcGI55MI57fG9bWGDYDwJEw1qtRDwHwbIpwBpeM/upsBRCNaovmBandagrNWH6sIn9i0K8IgEZfwB0+rd6ii+IKZrJAc8RrdwOgfeUXeTaKos97GWezgRw4znV9mblIc7hNX1xG1AM1mFyc0V+lsQc8T9SusmsXHyrqKNo= Received: by 10.70.80.14 with SMTP id d14mr16681336wxb.1166800034017; Fri, 22 Dec 2006 07:07:14 -0800 (PST) Received: from ?192.168.1.6? ( [74.108.69.82]) by mx.google.com with ESMTP id e16sm5623759qba.2006.12.22.07.07.13; Fri, 22 Dec 2006 07:07:13 -0800 (PST) In-Reply-To: <00a901c72586$f7e7afb0$0201a8c0@pc1> References: <00a901c72586$f7e7afb0$0201a8c0@pc1> Mime-Version: 1.0 (Apple Message framework v752.3) X-Priority: 3 Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: <043EF248-A4B4-438F-B738-834A5770A2D9@prohost.org> Cc: Content-Transfer-Encoding: 7bit Date: Fri, 22 Dec 2006 10:07:10 -0500 To: Matt Wilmas X-Mailer: Apple Mail (2.752.3) Sender: Ilia Alshanetsky Subject: Re: [PHP-DEV] [PATCH] Small date() optimization From: ilia@prohost.org (Ilia Alshanetsky) Matt, The backslash removal is actually intentional. It is designed to handle instances such as "\d", in which case the format value is printed as a literal "d". On 22-Dec-06, at 12:06 AM, Matt Wilmas wrote: > Hi, > > Just a simple patch for 5.2 to save smart_str_appends()'s strlen() > calls in > date_format(). It's already done in HEAD. Seems pretty safe for > 5.2.1. :-) > > I also noticed that if the format string contains a backslash as > the last > character, it is lost (should be printed right?). So I changed > that too and > attached the patch for HEAD. > > 5.2's patch: > http://realplain.com/php/date_optimization_5_2.diff > > > Matt > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php Ilia Alshanetsky