Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85510 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94398 invoked from network); 27 Mar 2015 16:42:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Mar 2015 16:42:07 -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.44 cause and error) X-PHP-List-Original-Sender: ralph@ralphschindler.com X-Host-Fingerprint: 209.85.218.44 mail-oi0-f44.google.com Received: from [209.85.218.44] ([209.85.218.44:35247] helo=mail-oi0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3F/78-38005-E5885155 for ; Fri, 27 Mar 2015 11:42:06 -0500 Received: by oiag65 with SMTP id g65so80630052oia.2 for ; Fri, 27 Mar 2015 09:42:03 -0700 (PDT) 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:references:in-reply-to:content-type :content-transfer-encoding; bh=kDWLqYZdmkr2xuMX//h7XLjQlTmntzYUsqD2vSKTSW0=; b=Hxh7l7TW/96UINhW2Dbid9oWDDQGnLEUVkraz8EzRAmEXyICS9ClDfMmGUn1Lqe5JX JIx4b6QGrm1qQ4WWAPbZyVGoNuwenLO7CmQEwTtJYAO14AlhEtL61ajDGq+Ittqtvdjq kIQQPhNw/5Nb8YO/VvCRZf1ClwWK1ZTCNWbSraeKiRkRlSkLde3Ws0UqT6Anwci2Guv6 kIF5gizBOi5K/5Gp3CuM7WgkIjzLmWJlwPhsLDL9i1Mw8Z05Fxz/FiPjlfZerZ6jVRUl 9LG7HMjE58+7wq3Ce2Bcu5Q5oRhcT2hEkGKqjI9Lt71PS8TxD1jzMMlc6WNyaeduCjWc vpLA== X-Gm-Message-State: ALoCoQmBNkAAJb35j4mL7s+pEpJHq0tflybwuHxTJhiP5n7fqq6CZ1GPw78BSi6Rqhmu2Rfzn/8R X-Received: by 10.202.129.70 with SMTP id c67mr15945612oid.46.1427474523455; Fri, 27 Mar 2015 09:42:03 -0700 (PDT) Received: from [172.16.1.4] (ip72-211-83-231.no.no.cox.net. [72.211.83.231]) by mx.google.com with ESMTPSA id r83sm1260050oif.28.2015.03.27.09.42.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Mar 2015 09:42:03 -0700 (PDT) Message-ID: <55158859.5000606@ralphschindler.com> Date: Fri, 27 Mar 2015 11:42:01 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: internals@lists.php.net References: <547CEB74.9070807@ralphschindler.com> <54D1BF4B.30008@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] $http_response_header From: ralph@ralphschindler.com (Ralph Schindler) >>> About $php_errormsg , we have error_get_last(). >>> About $http_response_headers, we have no replacement. >>> >>> Why not get rid of both ? >> >> I agree. Magically appearing variables are bad design and if we can get >> rid of them, PHP 7 is the time. >> >> -- >> Stas Malyshev >> smalyshev@gmail.com >> > > did we miss the opportunity? Maybe so. Truthfully, I came to the conclusion I did not want to propose removing $http_response_header unless we had a reasonable replacement for the somewhat common workflow of file_get_contents('http://...'); then usage of $http_response_header. I think there might be room to have added http_get_last_header(), or something to that effect. -ralph