Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44126 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10121 invoked from network); 2 Jun 2009 20:30:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jun 2009 20:30:35 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.216.187 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.216.187 mail-px0-f187.google.com Received: from [209.85.216.187] ([209.85.216.187:33991] helo=mail-px0-f187.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/4B-01606-AEB852A4 for ; Tue, 02 Jun 2009 16:30:35 -0400 Received: by pxi17 with SMTP id 17so1704150pxi.29 for ; Tue, 02 Jun 2009 13:30:31 -0700 (PDT) Received: by 10.140.127.20 with SMTP id z20mr160862rvc.187.1243974631554; Tue, 02 Jun 2009 13:30:31 -0700 (PDT) Received: from trainburn-lm.corp.yahoo.com (trainburn-lm.corp.yahoo.com [207.126.233.11]) by mx.google.com with ESMTPS id g31sm20509397rvb.53.2009.06.02.13.30.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 02 Jun 2009 13:30:30 -0700 (PDT) Message-ID: <4A258BE5.3080409@lerdorf.com> Date: Tue, 02 Jun 2009 13:30:29 -0700 User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Andrei Zmievski CC: PHP internals References: <4A245810.20503@gravitonic.com> <4A258942.6010900@gravitonic.com> In-Reply-To: <4A258942.6010900@gravitonic.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: ext/filter and rfc1867 problem From: rasmus@lerdorf.com (Rasmus Lerdorf) As far as I remember that is because php_sapi_filter() does the variable registration for those cases, so it shouldn't be done in rfc1867.c Andrei Zmievski wrote: > Does anyone have any idea what I'm talking about here? Derick? Rasmus? > Pierre? Bueller? > > Andrei Zmievski wrote: >> I ran into an issue today that seems to be a genuine bug. >> >> In rfc1867.c there is code like this: >> >> if (sapi_module.input_filter(PARSE_POST, param, &value, value_len, >> &new_val_len TSRMLS_CC)) { >> /* register the variable */ >> } >> >> The sapi_module.input_filter points to php_sapi_filter(). That return >> value of that function is based on "retval" variable which defaults to >> 0 at the top of the function and is set to 1 only when arg is >> PARSE_STRING. The end result is that it returns 0 and rfc1867 handler >> never registers the variable. Am I totally missing something or is >> this a real bug? >> >> -Andrei >