PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » PHP » PHP_Compat » Bug #3497

Need PHP5 function get_headers

Details

Request #3497Need PHP5 function get_headers
Submitted2005-02-16 19:26 UTC
Fromscragz at hotmail dot com
StatusClosed
PackagePHP_Compat
PHP VersionIrrelevant
OSIrrelevant
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.