Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1BE9B1096F for ; Mon, 1 Jul 2013 19:37:47 +0000 (UTC) Received: (qmail 61884 invoked by uid 500); 1 Jul 2013 19:37:46 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 61833 invoked by uid 500); 1 Jul 2013 19:37:46 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 61825 invoked by uid 99); 1 Jul 2013 19:37:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jul 2013 19:37:46 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chris_se@gmx.net designates 212.227.17.20 as permitted sender) Received: from [212.227.17.20] (HELO mout.gmx.net) (212.227.17.20) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jul 2013 19:37:39 +0000 Received: from arafel.iwakd.de ([78.46.72.57]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LsTjw-1UDlIN1nPU-0121rn for ; Mon, 01 Jul 2013 21:37:19 +0200 Received: from [192.168.0.150] (HSI-KBW-046-005-088-112.hsi8.kabel-badenwuerttemberg.de [46.5.88.112]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arafel.iwakd.de (Postfix) with ESMTPSA id C2F0740024 for ; Mon, 1 Jul 2013 21:37:18 +0200 (CEST) Message-ID: <51D1DA73.8020804@gmx.net> Date: Mon, 01 Jul 2013 21:37:23 +0200 From: Christian Seiler User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.7) Gecko/20120916 Thunderbird/10.0.7 MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: stop copying r->content_type to r->handler? References: <9644a4ff602b9ef21a876be95a2116d1@iwakd.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:uzH3llUczrgisZtUdXWAFVyPBBDhqiI/gyJRwV8HsKffVyM7A43 Mn5gYP5k9OPUcRcS57F4cY7HIinfCjIzhuIy5UzDKssPCm4R1ELM0R/vEfP17mtXwXVbQqk 0LhEIrFAiCVa/BwsG9knNBYsKmpzmkOjporgWteImuVr32IQ2Vjg6GuGBEYcoMYsVU+dDNV OX7LLcDV/oRapWHEoXcRA== X-Virus-Checked: Checked by ClamAV on apache.org Hi, > It looks like mod_actions does not recognize r->handler set to "" -- > when r->handler is NULL, he will look directly to r->content_type, so > that may be a potential way to still handle content-type based > "dispatch" without having the content-type sit in r->handler. What you suggest would, as far as I can see, make my configuration still work as expected but allow you to remove the copy of r->content_type, so I don't have any objections to that. From a coding perspective, this seems cleaner to me. By the way, I just cross-checked against the current mod_php [1], and they check against r->handler, so your change would probably break current mod_php regardless of mod_actions. On the other hand, a) my guess is that this change will not make it into 2.4 or lower anyway, so there should be plenty of time to write a release note about that and b) as far as I understand it (I may be wrong about this) mod_php is discouraged in favor of FastCGI anyway nowadays. The interesting thing would be to see how many other modules also check r->handler for content_type. -- Christian [1] http://git.php.net/?p=php-src.git;a=blob;f=sapi/apache2handler/sapi_apache2.c;h=b7f95e0c1272996b48cee904d9fe98c062c6c413;hb=refs/heads/master