Home » PHP » PHP_Compat » Bug #3497
Need PHP5 function get_headers
Details
| Request #3497 | Need PHP5 function get_headers |
|---|---|
| Submitted | 2005-02-16 19:26 UTC |
| From | scragz at hotmail dot com |
| Status | Closed |
| Package | PHP_Compat |
| PHP Version | Irrelevant |
| OS | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2005-02-16 19:26 UTC] scragz at hotmail dot com
Description:
------------
I just stumbled on the get_headers function that I need to have for something, and was dismayed that it wasn't included in PHP_Compat.
http://us4.php.net/manual/en/function.get-headers.php
Note that there is a function at that URL in the comments that would almost be a drop-in replacement to the currently non-existant one.
Reproduce code:
---------------
require_once 'PHP/Compat.php';
$components = PHP_Compat::loadVersion();
print_r(get_headers('http://pear.php.net'));
Expected result:
----------------
Prints headers.
Actual result:
--------------
Throws error.