Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79360 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63790 invoked from network); 1 Dec 2014 22:28:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Dec 2014 22:28:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=ralph@ralphschindler.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ralph@ralphschindler.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ralphschindler.com from 209.85.218.46 cause and error) X-PHP-List-Original-Sender: ralph@ralphschindler.com X-Host-Fingerprint: 209.85.218.46 mail-oi0-f46.google.com Received: from [209.85.218.46] ([209.85.218.46:59196] helo=mail-oi0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/45-32869-A7BEC745 for ; Mon, 01 Dec 2014 17:28:11 -0500 Received: by mail-oi0-f46.google.com with SMTP id h136so8183606oig.19 for ; Mon, 01 Dec 2014 14:28:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=mXqQCY4mnn7niPd+T5NAupKVco6nrHVgMsozkyLhtww=; b=ddb1KFysozPHOuqCq6jfC0W+H0+xmrlkwYtPJHRAQECsmOmfRZ20VVisbw0fOEb6AQ GiQCzlPXJhds7tpuhkZSOm0Rhcl6xvGyRTsKEhv7aPA9DxpqFY+RgCrwSYVDzW+wFmuU fZrqKwMVEF/DdGkOo1kp8dMYm9+qAmtpsKDnf2Uvl+ZbP4BQupJUxyiqkzS/PseBn09z eeVmL+Sx+ILhjhWEX/TL75xT0mJ9U5B/ETvW46Ehfj0GGZ/R78ld0sMaqdehL8vjk4Yj UCVFIZ8eJMe9BsWzqvLZeIU4se56sLsn5CHx1n8lIg5V8ZOKwwanFPm27lmoN4+3LzX7 FPsg== X-Gm-Message-State: ALoCoQnu78ZZjymptkWBCkCPRtt0BtoXctL4Cgvsc6SRMFZn01u6S/UTgugiqJ8dbdUyugubfDN9 X-Received: by 10.202.231.139 with SMTP id e133mr29508433oih.8.1417472887162; Mon, 01 Dec 2014 14:28:07 -0800 (PST) Received: from [172.16.1.109] (ip72-211-78-64.no.no.cox.net. [72.211.78.64]) by mx.google.com with ESMTPSA id k9sm8928907oev.8.2014.12.01.14.28.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Dec 2014 14:28:06 -0800 (PST) Message-ID: <547CEB74.9070807@ralphschindler.com> Date: Mon, 01 Dec 2014 16:28:04 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: PHP Internals List Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: $http_response_header From: ralph@ralphschindler.com (Ralph Schindler) Hi all, Many of you know from reading the subject line whats coming next! ;) In php, after we interact with HTTP streams (as a client), PHP conjures into local scope a variable with header information from the previous request $http_response_header. Is this behavior something we want to keep around into PHP 7? Or should we find a different/short-cut way to get the information. Currently, the same information can be ascertained, but only if there is an open file handle and only through stream_get_meta_data($fh). It would be nice if there were an as-easy approach to getting data without perhaps conjuring magic variables into the beloved local scope? Thoughts? Ralph Schindler PS Also, do we have any other local-scope variables like this?