Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27077 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94439 invoked by uid 1010); 18 Dec 2006 20:58:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 94424 invoked from network); 18 Dec 2006 20:58:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Dec 2006 20:58:07 -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=good Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.92.170 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 66.249.92.170 ug-out-1314.google.com Linux 2.4/2.6 Received: from [66.249.92.170] ([66.249.92.170:19842] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F5/DB-18811-AB007854 for ; Mon, 18 Dec 2006 15:58:05 -0500 Received: by ug-out-1314.google.com with SMTP id 71so1779582ugh for ; Mon, 18 Dec 2006 12:57:28 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=M62lQYL4ZYcv73+x34egrD9dXQprEnC17ylQZaJMIpcRg0tnthSWE6uUk1ablfmtStvf/BoPGsSHrlFN5/so1grphoAqKs3NMSpe8oqSM2oto4ACYVWY49jGg+DzNWhC+k2wzJW08nlMvbj+hEnNHhVp/EH6+0AiCM7kPIK1UF4= Received: by 10.78.164.13 with SMTP id m13mr3419773hue.1166475447033; Mon, 18 Dec 2006 12:57:27 -0800 (PST) Received: by 10.78.122.4 with HTTP; Mon, 18 Dec 2006 12:57:26 -0800 (PST) Message-ID: Date: Mon, 18 Dec 2006 21:57:26 +0100 To: "Dmitry Stogov" Cc: "PHP internals" , "Zeev Suraski" , "Andi Gutmans" , "Rasmus Lerdorf" , "Ilia Alshanetsky" In-Reply-To: <000001c722e4$927c8370$6f02a8c0@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <000001c722e4$927c8370$6f02a8c0@thinkpad> Subject: Re: [PHP-DEV] php6: input encoding, filter and making JIT really JIT From: pierre.php@gmail.com (Pierre) Hello, On 12/18/06, Dmitry Stogov wrote: > The second solution has a lot of advantages. And I think it is better even > if it will little bit slower. > I think it can be implemented using overloaded arrays. I thought about using them but as far as I can tell there is a couple of issues with array overloading, like 2d access or []. Another problem is is_array($_POST) will fail if it is not a real array, many apps rely on is_array (even if GPC arrays are always created afaict or?). I will go with the solution #2 using JIT and a function. ext/filter changes will follow shortly after. Thanks all for your feedbacks. --Pierre