Bug #61605 [NEW]: header_remove() does not remove all headers

From: Date: Mon, 02 Apr 2012 23:20:14 +0000
Subject: Bug #61605 [NEW]: header_remove() does not remove all headers
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-169168@lists.php.net to get a copy of this message
From:             
Operating system: 
PHP version:      5.4.0
Package:          HTTP related
Bug Type:         Bug
Bug description:header_remove() does not remove all headers

Description:
------------
header_remove($name) removes only one header $name. The function header()
behaves the same way and replaces only first header.

Test script:
---------------
header('A: first');
header('A: second', FALSE); // append

// removes only 'A: first' and header 'A: second' is sent
header_remove('A');



Expected result:
----------------
no 'A' header is sent

Actual result:
--------------
header A: second is sent

-- 
Edit bug report at https://bugs.php.net/bug.php?id=61605&edit=1
-- 
Try a snapshot (PHP 5.4):            https://bugs.php.net/fix.php?id=61605&r=trysnapshot54
Try a snapshot (PHP 5.3):            https://bugs.php.net/fix.php?id=61605&r=trysnapshot53
Try a snapshot (trunk):              https://bugs.php.net/fix.php?id=61605&r=trysnapshottrunk
Fixed in SVN:                        https://bugs.php.net/fix.php?id=61605&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61605&r=needdocs
Fixed in release:                    https://bugs.php.net/fix.php?id=61605&r=alreadyfixed
Need backtrace:                      https://bugs.php.net/fix.php?id=61605&r=needtrace
Need Reproduce Script:               https://bugs.php.net/fix.php?id=61605&r=needscript
Try newer version:                   https://bugs.php.net/fix.php?id=61605&r=oldversion
Not developer issue:                 https://bugs.php.net/fix.php?id=61605&r=support
Expected behavior:                   https://bugs.php.net/fix.php?id=61605&r=notwrong
Not enough info:                     https://bugs.php.net/fix.php?id=61605&r=notenoughinfo
Submitted twice:                     https://bugs.php.net/fix.php?id=61605&r=submittedtwice
register_globals:                    https://bugs.php.net/fix.php?id=61605&r=globals
PHP 4 support discontinued:          https://bugs.php.net/fix.php?id=61605&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=61605&r=dst
IIS Stability:                       https://bugs.php.net/fix.php?id=61605&r=isapi
Install GNU Sed:                     https://bugs.php.net/fix.php?id=61605&r=gnused
Floating point limitations:          https://bugs.php.net/fix.php?id=61605&r=float
No Zend Extensions:                  https://bugs.php.net/fix.php?id=61605&r=nozend
MySQL Configuration Error:           https://bugs.php.net/fix.php?id=61605&r=mysqlcfg



Thread (5 messages)

« previous php.bugs (#169168) next »