Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69654 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23351 invoked from network); 17 Oct 2013 18:59:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2013 18:59:40 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.196 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.196 imap4.ox.registrar-servers.com Received: from [192.64.116.196] ([192.64.116.196:40634] helo=imap4.ox.registrar-servers.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/07-12663-A9330625 for ; Thu, 17 Oct 2013 14:59:39 -0400 Received: from localhost (localhost [127.0.0.1]) by oxmail.registrar-servers.com (Postfix) with ESMTP id 7A7A056007B for ; Thu, 17 Oct 2013 14:59:35 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap4.ox.registrar-servers.com Received: from oxmail.registrar-servers.com ([127.0.0.1]) by localhost (imap4.ox.registrar-servers.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id pN6v66D338Ua for ; Thu, 17 Oct 2013 14:59:35 -0400 (EDT) Received: from [192.168.0.200] (unknown [94.3.245.95]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by oxmail.registrar-servers.com (Postfix) with ESMTPSA id 176A156006A for ; Thu, 17 Oct 2013 14:59:34 -0400 (EDT) Message-ID: <52603390.7020609@ajf.me> Date: Thu, 17 Oct 2013 19:59:28 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: PHP internals Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [PATCH] Add apache_request_headers() and apache_response_headers() to the CLI server From: ajf@ajf.me (Andrea Faulds) Hello all, I implemented FR #65917 (getallheaders() is not supported by the built-in web server). FR #65917 is actually my own feature request; I created it because I had tried to use it with the CLI server to test an application of mine, and it wasn't available. So I went and implemented it, and since apache_response_headers() complements it and was trivial to implement as well, I have also implemented that, by copying the FastCGI code. Pull request here: https://github.com/php/php-src/pull/496 The intent is for this to be merged into master (and hopefully 5.6). The pull request updates NEWS and UPGRADING, as well as adding a test. Thanks for your time. -- Andrea Faulds http://ajf.me/