From: pnewman at wanadoo dot nl Operating system: fedora core 2 (linux) PHP version: 4.3.8 PHP Bug Type: Apache2 related Bug description: http header function cannot set content-length
Description: ------------ Hi I am scratching my head about this. Nothing I can do can get the Content-Length to output - I have tried using ob_start to use a buffer inorder to calculate the exact number of characters but even a script this simple does not work? Regards, Peter. Reproduce code: --------------- <?php header('Content-Length: 48'); ?> <html> <body> <p>hi</p> </body> </html> Expected result: ---------------- HTTP/1.1 200 OK Date: Mon, 20 Dec 2004 10:56:30 GMT Server: Apache/2.0.51 (Fedora) X-Powered-By: PHP/4.3.8 Content-Length: 48 Connection: close Content-Type: text/html; charset=UTF-8 Actual result: -------------- lynx -head -dump http://localhost/test3.php returns HTTP/1.1 200 OK Date: Mon, 20 Dec 2004 10:54:23 GMT Server: Apache/2.0.51 (Fedora) X-Powered-By: PHP/4.3.8 Connection: close Content-Type: text/html; charset=UTF-8 -- Edit bug report at http://bugs.php.net/?id=31197&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31197&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31197&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31197&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31197&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31197&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31197&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31197&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31197&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31197&r=support Expected behavior: http://bugs.php.net/fix.php?id=31197&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31197&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31197&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31197&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31197&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31197&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31197&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31197&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31197&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31197&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31197&r=mysqlcfg