php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50213 impossible to delete header
Submitted: 2009-11-18 05:56 UTC Modified: 2009-11-18 14:29 UTC
From: svecpetr at svecpetr dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 5.3.0 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: svecpetr at svecpetr dot com
New email:
PHP Version: OS:

 

 [2009-11-18 05:56 UTC] svecpetr at svecpetr dot com
Description:
------------
when you or php calls header(XY)

is impossible to delete this header

(yes can overwrite it... but cant delete it)

PS: headers are not sent to client

Reproduce code:
---------------
try this
php.ini set output_buffering = ob_gzhandler

index.php
<?php
ob_end_clean();
ob_start(null, 4096, true);
?>

client writes encoding mismatch... because in index.php is impossible to delete header Vary and Content-Encoding




Expected result:
----------------
if exists function header_list

why doesnt exists function header_delete

Actual result:
--------------
see above

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-18 14:29 UTC] jani@php.net
RTFM:

http://www.php.net/header_remove

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 07:01:28 2024 UTC