Req #34058 [Opn]: get_headers() retrieve a particular respons

From: Date: Tue, 29 Oct 2013 07:46:50 +0000
Subject: Req #34058 [Opn]: get_headers() retrieve a particular respons
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182468@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=34058&edit=1 ID: 34058 Updated by: krakjoe@php.net Reported by: bjori@php.net Summary: get_headers() retrieve a particular respons Status: Open Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues PHP Version: 5CVS-2005-08-10 (dev) Block user comment: N Private report: N New Comment: There's an impl attached ... Something to think about maybe ... if a server sends multiple headers of the same name you will only get the first returned, if we want to return a string there's not really another (good) way. Previous Comments: ------------------------------------------------------------------------ [2005-08-11 03:56:37] arnar at 8 dot is Patch has been submitted to php.internals http://news.php.net/php.internals/17815 Arnar Mar Sig ------------------------------------------------------------------------ [2005-08-10 02:42:22] bjori@php.net Description: ------------ Any change we can make get_headers() to act like parse_url(), i.e. retrive a particular respons (see: http://news.php.net/php.cvs/33239)? Reproduce code: --------------- <?php $last_modified = get_headers("http://example.com", 1, "Last-Modified"); echo $last_modified; ?> Expected result: ---------------- Wed, 08 Jan 2003 23:11:55 GMT ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=34058&edit=1

« previous php.bugs (#182468) next »