Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55336 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59044 invoked from network); 9 Sep 2011 17:14:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Sep 2011 17:14:40 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.53 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 74.125.83.53 mail-gw0-f53.google.com Received: from [74.125.83.53] ([74.125.83.53:54744] helo=mail-gw0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/E4-33036-E794A6E4 for ; Fri, 09 Sep 2011 13:14:39 -0400 Received: by gwj20 with SMTP id 20so1618360gwj.12 for ; Fri, 09 Sep 2011 10:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ELtgnbteLZjzJYhfsdTr3INcMb8NPgv4cVBmYMUeLoM=; b=RwZi+XtbkHgXro5QQVf81iS17/Oec9JJp8xKtHXzVwZdJRwOmYUR86L3pZs9DiO7bL 2KP29+wyGasmIwpc2IZlOSRGhmPXj/zF5IPj9T1B2/WPCbLM0LVzFjUFn5qqWrQ227m4 54DofetgOBm7JLB2hyansmn60S7duNYC+uUlw= MIME-Version: 1.0 Received: by 10.150.160.9 with SMTP id i9mr2445334ybe.29.1315588476254; Fri, 09 Sep 2011 10:14:36 -0700 (PDT) Received: by 10.147.99.13 with HTTP; Fri, 9 Sep 2011 10:14:36 -0700 (PDT) In-Reply-To: <00.10.33036.E373A6E4@pb1.pair.com> References: <00.10.33036.E373A6E4@pb1.pair.com> Date: Fri, 9 Sep 2011 19:14:36 +0200 Message-ID: To: "Matthew Weier O'Phinney" Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Re: Are all HTTP headers registered in SERVER? From: pierre.php@gmail.com (Pierre Joye) hi, On Fri, Sep 9, 2011 at 5:56 PM, Matthew Weier O'Phinney wrote: > On 2011-09-08, Karoly Negyesi wrote: >> It seems to be the case but this is not documented anywhere on >> php.net. Instead >> http://php.net/manual/en/function.apache-request-headers.php say "You >> can also get at the value of the common CGI variables by reading them >> from the environment". By the way, it is maybe important to notice that this function is not apache specific (yes, bad naming). We may alias it and create a new one called sapi_get_request_headers or something along this line instead. > That said, I'd really love to have a method in PHP for retrieving request > headers, either singly or as a list. Having to parse through $_SERVER has always > felt hackish. Yes, a common function for all SAPIs make sense. Let see if we can get the sapi_get_request/answer_headers in place for 5.4 using exising ones. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org