Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50564 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34749 invoked from network); 25 Nov 2010 18:43:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Nov 2010 18:43:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:47397] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 11/0A-16484-24EAEEC4 for ; Thu, 25 Nov 2010 13:43:14 -0500 Received: by fxm11 with SMTP id 11so1020131fxm.29 for ; Thu, 25 Nov 2010 10:43:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=P/QhFwAvRi2AI2x1E09UgjzXiQhixI/n/D1Zx4RY01k=; b=VkElPvj2G+rRivwJnzytQ7a/RNi5N2aIxeeI/akIbVqsK85zzuoAbmAs+U6q+8DWO+ 94gdqRnRPwrOPmZ/JZftPCUupCPLQOEw1f7/lgZ78pCoBCPALbd8Rv1FervWoNsprWpq l303T2+w3yNzGs5SKKEkImZKg23e+KO0W4vKM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=MHNjthSwWnc72fg93wqY6slQwVtlxGaunoBcZdihiZT+RTCx0xfam9RfIj9qvSXXh4 Nvf0Hv+uqscIwyLioD5OAlwYLrZTMcRewWl8JtXk7WRbXJ3Ptd0UM4ThcgTo01FyXhvz YFKBKYvn7LIF1ikNejPB8Rfs8eCvldVPBSRzI= MIME-Version: 1.0 Received: by 10.223.101.140 with SMTP id c12mr1136527fao.16.1290710590823; Thu, 25 Nov 2010 10:43:10 -0800 (PST) Received: by 10.223.83.142 with HTTP; Thu, 25 Nov 2010 10:43:10 -0800 (PST) In-Reply-To: <8757232E56758B42B2EE4F9D2CA019C9154E82@US-EX2.zend.net> References: <73.C4.59959.876BBEC4@pb1.pair.com> <3EA67EA2-A9B1-4DFB-8A30-05B37BCA313B@iki.fi> <8757232E56758B42B2EE4F9D2CA019C9154B70@US-EX2.zend.net> <1290705653.7033.73.camel@guybrush> <4CEE9C5F.3040206@lerdorf.com> <4CEEAA2C.2080308@lerdorf.com> <8757232E56758B42B2EE4F9D2CA019C9154E82@US-EX2.zend.net> Date: Thu, 25 Nov 2010 19:43:10 +0100 Message-ID: To: Andi Gutmans Cc: Rasmus Lerdorf , Ilia Alshanetsky , =?ISO-8859-1?Q?Johannes_Schl=FCter?= , Jani Taskinen , "davey@php.net" , PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: Hold off 5.4 From: pierre.php@gmail.com (Pierre Joye) On Thu, Nov 25, 2010 at 7:33 PM, Andi Gutmans wrote: >> -----Original Message----- >> From: Rasmus Lerdorf [mailto:rasmus@lerdorf.com] >> Sent: Thursday, November 25, 2010 10:26 AM >> To: Ilia Alshanetsky >> Cc: Johannes Schl=FCter; Andi Gutmans; Jani Taskinen; davey@php.net; PHP >> Internals >> Subject: Re: [PHP-DEV] Re: Hold off 5.4 >> >> We also need that non-null zend_parse_parameters type implemented to cle= an >> up the null-byte poisoning fixes in 5.3. =A0I can't see this slowing us = down much as >> it is pretty trivial. =A0Just takes someone to sit down for a couple of = hours and >> implementing it and finding all the places where parameters end up in pa= ths. >> There are probably other places we don't want nulls either that currentl= y have >> local checks that can be removed. > > Yes I agree. We may be able to skip this check for interned strings which= would be nice and potentially eliminate performance impact somewhat but it= 's something that would need to be looked into. It's non-trivial but doable= (need to add a flag for interned strings whether they have a zero byte or = not). What do you think about a path argument? Returning something like zend_file_handle with some more meta info. Doing so will let us pass all the way down to the actual file API system call without having to duplicate opearions (stat, perms, etc.) as each ops will simply set the member accordingly. Cheers, --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org