#27196 [Opn->Csd]: sapi apache2 uninitialized content-length value
| From: | iliaa@php.net | Date: | Mon, 09 Feb 2004 23:22:07 +0000 |
| Subject: | #27196 [Opn->Csd]: sapi apache2 uninitialized content-length value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-54646@lists.php.net to get a copy of this message | ||
ID: 27196
Updated by: iliaa@php.net
Reported By: pdoru at kappa dot ro
-Status: Open
+Status: Closed
Bug Type: Apache2 related
Operating System: irelevant
PHP Version: Irrelevant
New Comment:
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
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2004-02-09 12:29:55] pdoru at kappa dot ro
Description:
------------
Hi,
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:
http://pdoru.from.ro/patch-php-sapi/
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27196&edit=1