From: pdoru at kappa dot ro
Operating system: irelevant
PHP version: Irrelevant
PHP Bug Type: Apache2 related
Bug description: sapi apache2 uninitialized content-length value
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 bug report at http://bugs.php.net/?id=27196&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27196&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27196&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27196&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27196&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27196&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27196&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27196&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27196&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27196&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27196&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27196&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27196&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27196&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27196&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27196&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27196&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27196&r=float