Req #55716 [Asn->Csd]: Add an option to pass a custom stream context to get_headers
| From: | tyrael@php.net | Date: | Thu, 08 Oct 2015 08:46:58 +0000 |
| Subject: | Req #55716 [Asn->Csd]: Add an option to pass a custom stream context to get_headers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-196497@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55716&edit=1
ID: 55716
Updated by: tyrael@php.net
Reported by: gordon at onlinehome dot de
Summary: Add an option to pass a custom stream context to
get_headers
-Status: Assigned
+Status: Closed
Type: Feature/Change Request
Package: Streams related
Operating System: any
PHP Version: 5.4.0beta1
Assigned To: tyrael
Block user comment: N
Private report: N
New Comment:
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
fixed it in master, expected to be released in php 7.1.0
Previous Comments:
------------------------------------------------------------------------
[2011-09-17 17:00:00] gordon at onlinehome dot de
Description:
------------
This get_headers() function uses the default stream context, which can be set/changed with the
stream_context_get_default() function. This is sometimes undesirable because the default context
will be used for any subsequent uses as well. Please provide an optional third argument to the
get_headers() function to allow setting of a custom stream context (just like file_get_contents
has).
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55716&edit=1