|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27196 sapi apache2 uninitialized content-length value
Submitted: 2004-02-09 12:29 UTC Modified: 2004-02-09 18:22 UTC
From: pdoru at kappa dot ro Assigned:
Status: Closed Package: Apache2 related
PHP Version: Irrelevant OS: irelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
29 + 17 = ?
Subscribe to this entry?

 [2004-02-09 12:29 UTC] pdoru at kappa dot ro
   While playing with some code I noticed that apache2
sapi implementation(s) does not initialize the SG(content-length) sapi variable. Apache 1.3 sapi does! and so does ALL OTHER interfaces. A quick grep into the sources will reveal that only apache2handler and apache2filter does not initialize this. Is there a reason for this ? Or is just something that sliped ? maybe a BUG ....
   I wrote a patch to fix this. see attached. tested and it works with no problem and correctly reports the content-length. It is very simple and straight forward. 

   This works for both php v4.3.* and v5, same code, version doesn't matter.

for patch and more info see:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-09 18:22 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 22 12:01:30 2024 UTC