Bug #61605 [Opn->Fbk]: header_remove() does not remove all headers
Edit report at https://bugs.php.net/bug.php?id=61605&edit=1
ID: 61605
Updated by: aharvey@php.net
Reported by: david at grudl dot com
Summary: header_remove() does not remove all headers
-Status: Open
+Status: Feedback
Type: Bug
Package: HTTP related
PHP Version: 5.4.0
Block user comment: N
Private report: N
New Comment:
Which SAPI are you using? CGI, FPM, Apache2 handler, Apache2 filter, something
else?
Previous Comments:
------------------------------------------------------------------------
[2012-04-02 23:20:14] david at grudl dot com
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 this bug report at https://bugs.php.net/bug.php?id=61605&edit=1
Thread (5 messages)