php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22603 Can't set content-length
Submitted: 2003-03-08 03:26 UTC Modified: 2003-03-24 04:16 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: mcmunn at mcmunn dot com Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 4.3.0 OS: FreeBSD 4.7
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-03-08 03:26 UTC] mcmunn at mcmunn dot com
I can't set the content-length via the header() function.  I am setting the content-type and other header fields, this is making me bonkers. Even the most simple sample:

<?
ob_start();
?>
 
Put HTML tags.
 
<?
$size=ob_get_length();
header("Content-Length: $size");
ob_end_flush();
?>

will fail.  I have apache 2.0.43 and PHP 4.3.0

Any help is much appreciated.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-15 18:47 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2003-03-19 17:02 UTC] mcmunn at mcmunn dot com
I upgraded to 4.3.1, still having the same problem
 [2003-03-19 17:22 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

You were asked to try the snapshot, not 4.3.1.

 [2003-03-24 04:16 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 00:01:32 2024 UTC