#40321 [NEW]: get_headers should lowercase array keys

From: Date: Fri, 02 Feb 2007 10:08:10 +0000
Subject: #40321 [NEW]: get_headers should lowercase array keys
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-108324@lists.php.net to get a copy of this message
From:             elias at adaptiveinstance dot com
Operating system: all
PHP version:      5.2.0
PHP Bug Type:     *URL Functions
Bug description:  get_headers should lowercase array keys

Description:
------------
http header keys are defined case insensetive in rfc2616, therefore
get_headers should lower or uppercase all keys.
for BC an additional parameter may be useful:

get_headers($url, $format, $toLower = false);


-- 
Edit bug report at http://bugs.php.net/?id=40321&edit=1
-- 
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40321&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40321&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40321&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40321&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=40321&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40321&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40321&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40321&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40321&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40321&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=40321&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=40321&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40321&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40321&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40321&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40321&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40321&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40321&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40321&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40321&r=mysqlcfg


Thread (2 messages)

« previous php.bugs (#108324) next »